On Mar 20, 2009, at 9:27 AM, Jim Pirzyk wrote: > > On Mar 20, 2009, at 10:00 AM, Peter Meier wrote: > >> >> Hi >> >>> I just though of another case where this would be useful, running >>> 'newaliases' after /etc/mail/aliases has been updated. What do >>> other people do? I have >>> >>> mailalias { foo: >>> ... >>> notify => [ Exec[newaliases] ] >>> } >>> >>> on each mailalias type. I thought last night that: >>> >>> Mailalias { >>> notify => [ Exec[newaliases] ] >>> } >>> >>> would work, but it does not seem to. >> >> this should do it. but this definition should be included as first, >> before any the other Mailalias definitions. I have plenty of such >> statements, and they work fine. >> Another thing is to add a wrapper define, which will set the >> appropriate defaults on your exec. Actually for the alias type I do >> it >> that way. > > What version? I'm running 0.24.7. I have other resource defaults, > and they did work. I have not tested it lately. I have defined the > Mailalias within the 'mail' class and I'm testing in my > 'ssh::client' class. The mail is imported before ssh and the mail > class is included before the ssh::client class.
It's scope, not order, that matters. It basically has to be in your site.pp, outside of any class. Yes, suckage, 0.25 has a better way (collections that modify resources). -- Risk! Risk anything! Care no more for the opinions of others, for those voices. Do the hardest thing on earth for you. Act for yourself. Face the truth. -- Katherine Mansfield --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---