> > On 16.06.2010 20:38, Sukh Khehra wrote: >> I am trying to add an entry to /etc/aliases using this but am unable to >> keep the entry from being added on every puppet run. I couldn't figure
Is there something wrong with the puppet native type to manage this file? >> out the proper "onlyif" attribute to use to add it only once. >> >> augeas{ "add sendmail alias" : >> context => "/files/etc/aliases", >> changes => [ >> "set /files/etc/aliases/01/name mycron", >> "set /files/etc/aliases/01/value[1] us...@mydomain.com", >> "set /files/etc/aliases/01/value[2] us...@pmydomain.com", >> ], >> } >> exec { "/usr/bin/newaliases": subscribe => Augeas["add sendmail >> alias"], refreshonly => true } >> >> >> Thanks for the help. >> >> Regards, >> Sukh >> >> > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-us...@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. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.