On 06/11/12 22:31, Jakov Sosic wrote:
> Hi
> 
> I want to modify one of the existing lenses to better suit my needs, but
> I don't know where to put it on the filesystem?
> 
> It seems wrong to overwrite file in /usr/share/augeas/lenses/dist or to
> rebuild augeas-libs, is there any other way to distribute modifications
> of existing lenses or completely new lenses?

You can deploy them as file resources or packages (as Ian suggested)
into /usr/share/augeas/lenses, which takes precedence over the dist
subdirectory.

If you are using 2.7.18 or higher, you can also pluginsync lenses in the
same way as facts etc.  This should take precedence over dist lenses
too.  Store the lens at:

  modulename/lib/augeas/lenses/custom.aug

(http://docs.puppetlabs.com/guides/plugins_in_modules.html)

-- 
Dominic Cleal
Red Hat Engineering

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to