Ask Your Question

How can I use augeas on a /opt/app/etc/app.conf file?

asked 2015-01-05 18:34:09 -0600

davidallanwright gravatar image


How can I get augeas /files to include files outside of /etc. Like /opt/app/etc/app.conf

thank you, Dave Wright

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-01-05 21:05:16 -0600

cbarbour gravatar image

updated 2015-01-06 00:12:20 -0600

Yes, absolutely.

Each lens defines a list of files that should be automatically be processed when the lens is loaded, but you have complete control over this behavior.

If you wish to edit a specific file using the augtool directly, you can do so by changing the loadpath for your lens inside the /augeas data structure. For more info, see this link:

Puppet handles this step for you if you use the the incl parameter. In order to use this feature, you need to tell puppet which lens should process the file, via the lens parameter.

Best practices with Augeas is to use incl and lens in all contexts; this significantly reduces the time spent managing your Augeas resources as it avoids having to load all the lenses and paths prior to making your changes.

edit flag offensive delete link more

Comments has some examples

domcleal gravatar imagedomcleal ( 2015-01-06 04:38:12 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2015-01-05 18:34:09 -0600

Seen: 821 times

Last updated: Jan 06 '15