Thanks you all for you answers.
It seems there is no 'common' way to handle this.

I think I will look more closely to Augeas and it seems having some 
main-purpose lenses 
(as most of config files use often the same kind of syntax) is a really good 
idea 
(spacevars, shellvars, ...). But being stuck with the hardcoded paths is really 
blocking.
A patch is welcome :)


Aurelien


David Lutterkort a écrit :
> On Fri, 2009-10-02 at 12:06 +0200, Aurelien Degremont wrote:
>> I put /etc/sysconfig/network as an example. AFAIK, unfortunately, Augeas 
>> only handles 
>> known files (existing lenses). If we trty to handle 
>> /etc/our_local_config_file, it is not 
>> so easy.
> 
> If there is a lens already, but the lens doesn't look for the file in
> your custom place, I am working on a patch for the augeas type that lets
> you set which file to read and what lens to use with additional
> parameters. (That was one issue that came up in the Augeas session at
> puppetcamp yesterday)
> 
> If there isn't a lens yet, I'll be more than happy to help - but it's
> probably best if we discuss that on the Augeas mailing list.
> 
> David
> 
> 
> 
> > 
> 




-- 
Aurelien Degremont
CEA

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to