I want to send a email from foreman after a host build, i.e after
executing "/usr/bin/wget --quiet --output-document=/dev/null --no-
check-certificate <%= foreman_url %>" in the finish script.
> Hi
>
>
> I want to send a email from foreman after a host build, i.e after
> executing "/usr/bin/wget --quiet --output-document=/dev/null --no-
> check-certificate <%= foreman_url %>" in the finish script.
>
> What is the best way to do that ?
add a feature request, this seems like a more then reasonable
request, so would be happy to add it as an official feature.
Ohad
···
On Mon, Feb 27, 2012 at 10:43 AM, Nicolas wrote:
>
> --
> You received this message because you are subscribed to the Google Groups "Foreman users" group.
> To post to this group, send email to foreman-users@googlegroups.com.
> To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.
>
I was thinking, is it possible (if interesting) to include this in a
more general feature :
Add a new template type where we can do what ever we want (send a
email/sms for example)
This template is "triggered" after the host build.
···
On Feb 27, 9:56 am, Ohad Levy wrote:
> On Mon, Feb 27, 2012 at 10:43 AM, Nicolas wrote:
> > Hi
>
> > I want to send a email from foreman after a host build, i.e after
> > executing "/usr/bin/wget --quiet --output-document=/dev/null --no-
> > check-certificate <%= foreman_url %>" in the finish script.
>
> > What is the best way to do that ?
>
> IT should not too hard, you have two options:
> 1. hack the code, more specificlly, add something here:https://github.com/theforeman/foreman/blob/0.4-stable/app/models/host...
> 2. add a feature request, this seems like a more then reasonable
> request, so would be happy to add it as an official feature.
>
> Ohad
>
>
>
>
>
>
>
>
>
> > --
> > You received this message because you are subscribed to the Google Groups "Foreman users" group.
> > To post to this group, send email to foreman-users@googlegroups.com.
> > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en.
> Thanks Ohad,
>
> I opened this feature request : Feature #1510: Send a email after a host build has completed - Foreman
>
> I was thinking, is it possible (if interesting) to include this in a
> more general feature :
>
> * Add a new template type where we can do what ever we want (send a
> email/sms for example)
>
> * This template is "triggered" after the host build.
template? or rather a hook? where you could execute stuff your self?
···
On Mon, Feb 27, 2012 at 12:53 PM, Nicolas wrote:
>
>
> On Feb 27, 9:56 am, Ohad Levy wrote:
>> On Mon, Feb 27, 2012 at 10:43 AM, Nicolas wrote:
>> > Hi
>>
>> > I want to send a email from foreman after a host build, i.e after
>> > executing "/usr/bin/wget --quiet --output-document=/dev/null --no-
>> > check-certificate <%= foreman_url %>" in the finish script.
>>
>> > What is the best way to do that ?
>>
>> IT should not too hard, you have two options:
>> 1. hack the code, more specificlly, add something here:https://github.com/theforeman/foreman/blob/0.4-stable/app/models/host...
>> 2. add a feature request, this seems like a more then reasonable
>> request, so would be happy to add it as an official feature.
>>
>> Ohad
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> > --
>> > You received this message because you are subscribed to the Google Groups "Foreman users" group.
>> > To post to this group, send email to foreman-users@googlegroups.com.
>> > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
>> > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "Foreman users" group.
> To post to this group, send email to foreman-users@googlegroups.com.
> To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.
>
In the meantime, if someone is interested, I had this feature (https:// github.com/nvogel/foreman/compare/build_completed),
maybe not greatly implemented because I'm just starting with ruby/
rails programming but it works well.
···
On Feb 27, 12:35 pm, Ohad Levy wrote:
> On Mon, Feb 27, 2012 at 12:53 PM, Nicolas wrote:
> > Thanks Ohad,
>
> > I opened this feature request :http://theforeman.org/issues/1510
>
> > I was thinking, is it possible (if interesting) to include this in a
> > more general feature :
>
> > * Add a new template type where we can do what ever we want (send a
> > email/sms for example)
>
> > * This template is "triggered" after the host build.
>
> template? or rather a hook? where you could execute stuff your self?
>
>
>
>
>
>
>
>
>
> > On Feb 27, 9:56 am, Ohad Levy wrote:
> >> On Mon, Feb 27, 2012 at 10:43 AM, Nicolas wrote:
> >> > Hi
>
> >> > I want to send a email from foreman after a host build, i.e after
> >> > executing "/usr/bin/wget --quiet --output-document=/dev/null --no-
> >> > check-certificate <%= foreman_url %>" in the finish script.
>
> >> > What is the best way to do that ?
>
> >> IT should not too hard, you have two options:
> >> 1. hack the code, more specificlly, add something here:https://github.com/theforeman/foreman/blob/0.4-stable/app/models/host...
> >> 2. add a feature request, this seems like a more then reasonable
> >> request, so would be happy to add it as an official feature.
>
> >> Ohad
>
> >> > --
> >> > You received this message because you are subscribed to the Google Groups "Foreman users" group.
> >> > To post to this group, send email to foreman-users@googlegroups.com.
> >> > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
> >> > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups "Foreman users" group.
> > To post to this group, send email to foreman-users@googlegroups.com.
> > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/foreman-users?hl=en.