[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 wbmccarty@gmail.com 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
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine
- Use of editfile to support templated configuration files, wbmccarty, 2004/12/14
- Re: Use of editfile to support templated configuration files, Eric Sorenson, 2004/12/14
- Re: Use of editfile to support templated configuration files,
Russell Adams <=
- Message not available
- Re: Use of editfile to support templated configuration files, wbmccarty, 2004/12/14
- Re: Use of editfile to support templated configuration files, Eric Sorenson, 2004/12/14
- Message not available
- Re: Use of editfile to support templated configuration files, wbmccarty, 2004/12/14
- Re: Use of editfile to support templated configuration files, Jamie Wilkinson, 2004/12/14
- Re: Use of editfile to support templated configuration files, Tim Nelson, 2004/12/15
- Re: Use of editfile to support templated configuration files, Ted Zlatanov, 2004/12/15
- Message not available
- Re: Use of editfile to support templated configuration files, wbmccarty, 2004/12/15
- Re: Use of editfile to support templated configuration files, Jamie Wilkinson, 2004/12/14
- Re: Use of editfile to support templated configuration files, Tim Nelson, 2004/12/15
Re: Use of editfile to support templated configuration files, Sami J. Mäkinen, 2004/12/15