[augeas-devel] Adding error handling

David Lutterkort lutter at redhat.com
Tue Nov 29 17:40:07 UTC 2011


On Mon, 2011-11-28 at 16:04 +0200, Graham Leggett wrote:
> After making a first attempt at getting augeas to work together with puppet

You can also tell the augeas type in puppet to use a specific lens[1]:

        augeas { something:
          context => ...,
          changes => ...,
          lens => "Ldap.lns",
          incl => "/etc/mystuff/.."
        }

Yes, the fact that augeas doesn't complain when a file can't be found is
a little surprising at first; but making it comlain about missing files
would make it unusable (e.g., a lot of lenses look by default for files
in the standard Debian and Red Hat locations; clearly, at least one of
those two won't be there on any given system)

David

[1] http://docs.puppetlabs.com/references/2.7.6/type.html#augeas




More information about the augeas-devel mailing list