[Puppet Users] Re: EPEL package dependencies

Rob McBroom
2009-05-27T17:33:51Z

On 2009-May-27, at 11:24 AM, Todd Zullinger wrote:

> What did the manifests look like?

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"],
     }

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

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.

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

Thanks.

--
Rob McBroom
<http://www.skurfer.com/>

Because it screws up the order in which people normally read text.

Original message:

> Why is it bad to top-post your reply?