[augeas-devel] example for inline includes

David Lutterkort dlutter at redhat.com
Fri Jun 27 17:43:00 UTC 2008


On Wed, 2008-06-25 at 13:52 -0700, Edward Muller wrote:
> On Jun 25, 2008, at 10:26 AM, David Lutterkort wrote:
> 
> > On Wed, 2008-06-25 at 09:49 -0700, Edward Muller wrote:
> >> With that said, what is the plan for addressing the need to handle
> >> include files for things like Apache and other similar programs that
> >> use split up, directly, or indirectly included files?
> >
> > Right now, the list of files to look at is hard coded in the lens
> > definitions (see for example the yum lens in yum.aug)
> >
> > The quickest way is probably to add an API call to process files
> > manually, though conceptually I'd prefer if knowledge of where to find
> > include files was built into the lens definitions.
> 
> The knowledge of where to find include files is usually specified in  
> the file that is including the files.
> 
> Using Apache as an example:
> 
> Include /etc/apache/vhosts/*.conf
> 
> /\ or similar is common, although not necessarily in RH ... But it's  
> been a while since I've seen RHs Apache setup. :-)
> 
> It would be naive to specify the Includes in the lens IMHO as each  
> distro/setup would have their own set of Includes.

I wasn't very clear: what I meant with 'knowledge about include files in
the lens' is that you can say something like 'look at all the entries
called Include and use their values as globs to find files that should
also be processed' Does that make more sense ?

David





More information about the augeas-devel mailing list