Hi All, Should puppet automatically run the newaliases system command on Linux after adding an alias using the ''mailalias'' type? None of my CentOS 5 systems or Ubuntu 8.10a5 laptop have done this. I''m having a read through the source, but I''m a python person, not a ruby programmer, so it''s taking me a while. If puppet does not automatically run newaliases, is there something I can set up an Exec to Subscribe to? Regards Darryl --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Mailalias { notify => Exec[''newaliases'']} in your highest available scope will set the defaults for mailalias On 15/09/2008, at 11:30 AM, Darryl Ross <spam@afoyi.com> wrote:> > Hi All, > > Should puppet automatically run the newaliases system command on > Linux after > adding an alias using the ''mailalias'' type? None of my CentOS 5 > systems or > Ubuntu 8.10a5 laptop have done this. > > I''m having a read through the source, but I''m a python person, not a > ruby > programmer, so it''s taking me a while. > > If puppet does not automatically run newaliases, is there something > I can set > up an Exec to Subscribe to? > > Regards > Darryl > > >--~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
AJ wrote:> Mailalias { notify => Exec[''newaliases'']} in your highest available > scope will set the defaults for mailaliasWorked a treat, thanks.> On 15/09/2008, at 11:30 AM, Darryl Ross <spam@afoyi.com> wrote: > >> Hi All, >> >> Should puppet automatically run the newaliases system command on >> Linux after >> adding an alias using the ''mailalias'' type? None of my CentOS 5 >> systems or >> Ubuntu 8.10a5 laptop have done this. >> >> I''m having a read through the source, but I''m a python person, not a >> ruby >> programmer, so it''s taking me a while. >> >> If puppet does not automatically run newaliases, is there something >> I can set >> up an Exec to Subscribe to? >> >> Regards >> Darryl >> > > >--~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Jeroen van Meeuwen (GMail)
2008-Sep-15 07:09 UTC
[Puppet Users] Re: Running newaliases for ''mailalias''
Darryl Ross wrote:> AJ wrote: >> Mailalias { notify => Exec[''newaliases'']} in your highest available >> scope will set the defaults for mailalias > > Worked a treat, thanks. >In addition, you could make the Exec["newaliases"] say: exec { "newaliases": cmd => "/path/to/newaliases", refreshonly => true } so that it is only executed if there really is a change in mail alias resources managed by puppet. Kind regards, Jeroen van Meeuwen -kanarip --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---