On Thu, May 12, 2011 at 4:19 PM, jcbollinger <john.bollin...@stjude.org>wrote:
> > > On May 12, 5:13 am, Silviu Paragina <sil...@paragina.ro> wrote: > > On 11.05.2011 18:06, Calum wrote: > > > > > > > > > On 11 May 2011 15:49, Ohad Levy<ohadl...@gmail.com> 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. the problem with tagmail is that you get every email (that was tagged for) regardless of environment, host owner etc. Ohad -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.