On May 20, 2010, at 11:36 AM, Tim Stoop wrote: > > > On 20 mei, 17:26, Patrick <kc7...@gmail.com> wrote: >> What are you trying to do with the onlyif? If that works in augtool, and >> that's what you want, just remove the onlyif. > > Without the onlyif, I'm still getting the error: > > debug: Augeas[dummy - cron-apt change mailon](provider=augeas): > Opening augeas with root /, lens path /usr/local/share/augeas/lenses:/ > usr/share/augeas/lenses/dist, flags 0 > debug: Augeas[dummy - cron-apt change mailon](provider=augeas): Augeas > version 0.7.0 is installed > debug: Augeas[dummy - cron-apt change mailon](provider=augeas): Will > attempt to save and only run if files changed > debug: Augeas[dummy - cron-apt change mailon](provider=augeas): > sending command 'set' with params ["/files/etc/cron-apt/config/ > MAILON", "upgrade"] > debug: Augeas[dummy - cron-apt change mailon](provider=augeas): Files > changed, should execute > debug: Augeas[dummy - cron-apt change mailon](provider=augeas): Closed > the augeas connection > debug: //kbp_debian/Cronapt::Config[dummy]/Augeas::Apply[dummy - cron- > apt change mailon]/Augeas[dummy - cron-apt change mailon]: Changing > returns > debug: //kbp_debian/Cronapt::Config[dummy]/Augeas::Apply[dummy - cron- > apt change mailon]/Augeas[dummy - cron-apt change mailon]: 1 change(s) > debug: Augeas[dummy - cron-apt change mailon](provider=augeas): > Opening augeas with root /, lens path /usr/local/share/augeas/lenses:/ > usr/share/augeas/lenses/dist, flags 0 > debug: Augeas[dummy - cron-apt change mailon](provider=augeas): Augeas > version 0.7.0 is installed > debug: Augeas[dummy - cron-apt change mailon](provider=augeas): > sending command 'set' with params ["/files/etc/cron-apt/config/ > MAILON", "upgrade"] > debug: Augeas[dummy - cron-apt change mailon](provider=augeas): Closed > the augeas connection > err: //kbp_debian/Cronapt::Config[dummy]/Augeas::Apply[dummy - cron- > apt change mailon]/Augeas[dummy - cron-apt change mailon]/returns: > change from need_to_run to 0 failed: Save failed with return code > false > notice: //kbp_debian/Cronapt::Config[dummy]/Augeas::Apply[dummy - cron- > apt change mailon]/Line[Augeas change tracking for 'dummy - cron-apt > change mailon']/Exec[line Augeas change tracking for 'dummy - cron-apt > change mailon']: Dependency augeas[dummy - cron-apt change mailon] has > 1 failures > warning: //kbp_debian/Cronapt::Config[dummy]/Augeas::Apply[dummy - > cron-apt change mailon]/Line[Augeas change tracking for 'dummy - cron- > apt change mailon']/Exec[line Augeas change tracking for 'dummy - cron- > apt change mailon']: Skipping because of failed dependencies > > I thought I needed the onlyif to prevent it from applying every run. >
It will only apply it if the command results in a file(s) being changed. That means you often need it for insert statements, but almost never need it for set statements. That's strange. Can you post a copy of the cron-apt config file? I'd like to play around with it and see if I get the same problem. -- 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.