On May 12, 5:13 am, Silviu Paragina <[email protected]> wrote:
> On 11.05.2011 18:06, Calum wrote:
>
>
>
> > On 11 May 2011 15:49, Ohad Levy<[email protected]>  wrote:
> >> You can use tagmail report, or use something like foreman to do it for you.
> >> Ohad
> > Thanks - I'll look into those.
>
> > I was more meaning something like:
>
> > file { "/etc/ntp.conf":
> >                  owner   =>  root,
> >                  group   =>  root,
> >                  mode    =>  644,
> >                  source  =>  "puppet:///modules/ntp/ntp.conf.2011-05-06",
> >                  require =>  Package["ntp"],
> >                  onchange =>  exec("mail ....."),
> >          }
>
> > or something like that.
>
> You almost gave yourself the answer. :) Check the refreshonly parameter
> for the exec type ;)
> But this seems more of a hack to me, so take it as you wish.


To be clear, to do it this way, "onchange" should be spelled "notify",
and the Exec should be declared with refreshonly => true.  It doesn't
seem very hackish to me, but tagmail would be a better solution for
most purposes.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to