[augeas-devel] Specifying file name and lens

Raphaël Pinson raphink at gmail.com
Thu Jun 14 09:27:09 UTC 2012


Also, if you're using Puppet, you can use the "lens" and "incl" parameters.


Raphaël


On Thu, Jun 14, 2012 at 4:23 AM, Alan Evans <alanwevans at gmail.com> wrote:

> There's a good set of instructions at
> http://augeas.net/page/Loading_specific_files.  What you're looking
> for is specifically in the "Loading even less" section.
>
> augtool> set /augeas/load/Fstab/incl "/etc/fstab"
>
> I do this a lot for XML files, java properties files and shellvars style
> files.
>
> Regards,
> -Alan
>
> On Wed, Jun 13, 2012 at 9:55 PM, Tom Limoncelli <tal at whatexit.org> wrote:
> > Sometimes I need to use augeas on a file that is not named as the lens
> > expects.  For example for debugging or because my code needs to edit a
> file
> > that is not "live" yet.
> >
> > Is there a way to specify "load file X using lens Y  and disregard the
> regex
> > that says this is wrong"?
> >
> > Tom
> >
> >
> >
> > --
> > http://EverythingSysadmin.com  -- my blog
> > http://www.TomOnTime.com -- my videos
> >
> > _______________________________________________
> > augeas-devel mailing list
> > augeas-devel at redhat.com
> > https://www.redhat.com/mailman/listinfo/augeas-devel
>
> _______________________________________________
> augeas-devel mailing list
> augeas-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/augeas-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20120614/4304443f/attachment.htm>


More information about the augeas-devel mailing list