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
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.

Reply via email to