voxpupuli / puppet-augeas

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

Update manifests/lens.pp #19

Closed nikolavp closed 11 years ago

nikolavp commented 11 years ago

Set the path of custom lens to "$lens_dest/dist". At least on our ubuntu servers this was needed for augeas to catch it up. Otherwise we are getting

 Loading failed for one or more files, see debug for /augeas//error output

If you want to specify the custom dir with _loadpath on augeas resource then at least document this somewhere. Note that I couldn't test this on redhat based systems and it might differ there.

raphink commented 11 years ago

The /usr/share/augeas/lenses/dist directory is for packaged lenses. Augeas automatically uses /usr/share/augeas/lenses in addition, which is were manually deployed (or via Puppet/Chef/anything else) lenses should go.

I don't think your error was linked to this. You'd have to paste the contents of /augeas//error (using augtool) to make this clearer.

nikolavp commented 11 years ago

You were right but for some odd reason augeas is checking the other lens too and I have some files which are not properly supported so it is sending error for them :(

Sorry for bothering you

Best, Nikola

raphink commented 11 years ago

No problem.