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] [email protected]",
           "set /files/etc/aliases/01/value[2] [email protected]",
       ],
   } 
   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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to