Rob McBroom wrote: > This is one that was causing problems. I'm pretty sure the "changes" > were already in place, so puppet didn't need to do anything. > > augeas { "main.cf": > require => Package["postfix"], > context => "/files/etc/postfix/main.cf", > changes => [ > "set canonical_maps ldap:/etc/postfix/addresses.ldap", > # "ins #comment before canonical_maps", > # "set #comment[.=''] 'refer to LDAP for To and From address'", > "set mydomain blah.com", > "set relayhost [smtp.blah.com]", > ], > notify => Service["postfix"], > }
That looks sane enough at a glance (and to a non-augeas guru). >> What were the errors? > > I removed augeas in an attempt to reproduce this error, but it doesn't > fail any more, so perhaps it's something about the augeas package's > installation process and not the presence of augeas itself? I can't imagine what that might be though. There aren't any scripts or triggers in the augeas* or ruby-augeas packages. Not that I'm trying to rule out the unexplained. :) > Anyway, I was able to find an example of the error in yesterday's > logs. > > May 26 16:36:35 t-corp-scmvm-0a puppetd[21954]: (//mta/ > Augeas[main.cf]/returns) change from need_to_run to 0 failed: Save > failed with return code false Hopefully some of the more augeas-aware folks can chime in if that's a common error with a known cause. > And I swear the sequence was only this: > > % service puppet stop > % puppetd --test > typical stuff plus the error above > % yum install augeas > % puppetd --test > works this time > > So, you can see why I would think it was requiring augeas, but maybe > there's more to it. Indeed. That would peak my curiosity too. >> And what versions of puppet, augeas, and ruby-augeas? :) > > puppet-0.24.8-1.el5.1 > ruby-augeas-0.2.0-1.el5 > augeas-libs-0.5.0-2.el5 > augeas-0.5.0-2.el5 > > (Augeas is installed now, but wasn't when the error occurred.) > >> A simple config like this works fine without augeas installed: > > It's not installed now, or it was never installed? On that particular box, it had been installed before, while I was experimenting with augtool. To test, I added a similar augeas config on a box that I know has never had augeas installed on it. That worked as well. Unfortunately, that seems to rule out the easy packaging bug. :/ Let's see if David Lutterkort or any of the other augeas folks here have better ideas. If not, and you can reproduce this, a bug report would be in order. -- Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Disobedience: The silver lining to the cloud of servitude. -- Ambrose Bierce
pgp0LQasXGfE1.pgp
Description: PGP signature