[augeas-devel] Feature request: apply a given lense to a given file.
Robin Lee Powell
rlpowell at digitalkingdom.org
Tue Mar 10 18:47:14 UTC 2009
On Fri, Jan 23, 2009 at 11:07:31AM -0800, Robin Lee Powell wrote:
> On Mon, Jan 19, 2009 at 10:56:18AM -0800, David Lutterkort wrote:
> > > It would be nice if I could tell augtool/the API (well, puppet
> > > really, but that'd come later) something to the effect of "apply
> > > this lense here to that file there; don't bother parsing
> > > anything else". Saves the trouble of producing another
> > > essentially identical lense.
> >
> > If it's good enough for general use, it should become an official
> > lens.
>
[snip]
>
> FWIW, The other purpose I was thinking of is rather Puppet-specific,
> which is being able to use Augeas to do things like add an arbitrary
> line to the end of a file by having a lens that just sees files
> as "trees" of their lines.
As a specific example of this, adding lines to logcheck ignore
files, and ssh authorized_keys files. In both cases, there is no
structure to them at all. I just want to use augeas as a better
sed, really, for automated file management. I wouldn't expect
augeas to find everybody's authorized_keys files in the /files tree
unless I had specifically pointed one out.
-Robin
--
They say: "The first AIs will be built by the military as weapons."
And I'm thinking: "Does it even occur to you to try for something
other than the default outcome?" -- http://shorl.com/tydruhedufogre
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/
More information about the augeas-devel
mailing list