voxpupuli / puppet-augeas

Helper for using augeas with puppet
Apache License 2.0
43 stars 82 forks source link

Should make sure package "augeas-lenses" is managed before Augeas calls #33

Closed antaflos closed 10 years ago

antaflos commented 10 years ago

init.pp contains Package['ruby-augeas'] -> Augeas <| |> but at least on Ubuntu 12.04 this doesn't seem enough. It can lead to cases where the package augeas-lenses is not up-to-date before Puppet tries to manage configuration entries with Augeas which then fails hard with Could not evaluate: unknown error - Failed to initialize Augeas. This is because the required lens is present but either too old or misses features required (Ubuntu 12.04 ships with ancient Augeas 0.10.0).

I think changing the above line to Package['ruby-augeas', 'augeas-lenses'] -> Augeas <| |> should fix this. I'll submit a PR.