[augeas-devel] Associating lenses with files in puppet-augeas

David Lutterkort lutter at redhat.com
Thu Oct 6 15:21:36 UTC 2011


On Mon, 2011-09-26 at 13:24 -0700, Jo Rhett wrote:
> How can one reload the lenses in puppet-augeas?   In short, I need to alter a lense's load path and then modify a file, exactly as below but inside a puppet stanza.
> 
> $ augtool
> augtool> set /augeas/load/MySQL/incl[4] /other/location/my.cnf
> augtool> load
> augtool> set /files/other/location/my.cnf/target[1]/datadir '/other/db/'
> augtool> save

The augeas type in puppet has a way to explicitly specify the lens and
file. IIRC, the properties are called 'lens' and 'incl'.

David




More information about the augeas-devel mailing list