help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use of editfile to support templated configuration files


From: Russell Adams
Subject: Re: Use of editfile to support templated configuration files
Date: Tue, 14 Dec 2004 17:32:48 -0600
User-agent: Mutt/1.4.2.1i

I was going to suggest you read Eric's take on editfiles first. ;]

http://cfwiki.org/cfwiki/index.php/Editfiles_Considered_Harmful

I do agree with him on most of the editfiles issues, however, so long
as I can guarantee the contents, I'll still use editfiles as I
outlined in:

http://cfwiki.org/cfwiki/index.php/Editfiles_Examples

and

http://cfwiki.org/cfwiki/index.php/Managing_Blocks_of_Code_with_Editfiles

This means that I don't have to use the copy facility, and I can use
editfiles to do the templating and easily combine text from several
locations.

I did like Single Copy Nirvana too, which very closely fits one of
your potential configurations. If you can use copy, I'd strongly
suggest you consider it.

Kudos Eric. ;]

Russell

On Tue, Dec 14, 2004 at 03:05:42PM -0800, Eric Sorenson wrote:
> On Tue, 14 Dec 2004 address@hidden wrote:
> 
> >Alternatively, I'd like to somehow be able to specify a hierarchy of
> >host groups, and have cfengine choose the file at the lowest level for
> >which a  version of the file exists. This would be pretty easily done
> >using an external module. But, I'd prefer to avoid external modules for
> >now and I don't see how to manage such a hierarchy concisely using
> >cfengine scripts.
> 
> I wrote up the way I accomplish this just the other day, it does precisely
> what you describe without external modules.
> 
>      http://cfwiki.org/cfwiki/index.php/Singlecopy_Nirvana
> 
> Please let me know if the documentation is confusing or unclear, either
> via email or on the 'discussion' link on the wiki page itself.
> 
> -- 
> 
>   - Eric Sorenson - Explosive Networking - http://eric.explosive.net -
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-cfengine




reply via email to

[Prev in Thread] Current Thread [Next in Thread]