On May 20, 2010, at 6:10 AM, Tim Stoop wrote:

> Hi all,
> 
> I'm trying to do fairly simple stuff with augeas, like:
> 
> augeas { "cronapt - mailon":
>  context => "/files/etc/cron-apt/config",
>  changes => "set MAILON upgrade",
>  onlyif  => "match MAILON != ['upgrade']",
> }
> 
> This works if I try it from the commandline:
> 
> t...@puppet-test.db:~$ sudo augtool
> augtool> set /files/etc/cron-apt/config/MAILON update
> augtool> save
> Saved 1 file(s)
> augtool>
> 
> However, when I try to do this from puppet, the whole files get
> emptied out, only the one expected line get added (MAILON=upgrade) and
> puppet reports and error:

What are you trying to do with the onlyif?  If that works in augtool, and 
that's what you want, just remove the onlyif.

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