[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Editfiles Considered Harmful
From: |
Ted Zlatanov |
Subject: |
Re: Editfiles Considered Harmful |
Date: |
Thu, 04 Dec 2003 10:34:21 -0500 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (usg-unix-v) |
On Thu, 4 Dec 2003, Mark.Burgess@iu.hio.no wrote:
> However, the bottom line is predictability: how do you ensure that?
> If you can guarantee with high probability that a huge editfiles
> stanza is predictable - no problem.
I think it would be fascinating if cfengine could provide more
convergent editfiles functions. DeleteLinesContaining and
AppendIfNoSuchLine are convergent, for instance. Maybe the reference
should separate convergent functions and explain best usage. They
work very well for /etc/hosts editing, for instance.
Considering the wide variety of configuration files, maybe this is
best handled by modules. Nevertheless, it would be good if cfengine
had internal support for some convergent editing of configurations.
For instance, sshd_config and ssh_config for OpenSSH have a specific
format so it should be possible to say
{
/etc/sshd_config
SetConfigStyle "sshd"
SetConfigOption "PermitEmptyPasswords" "yes"
/etc/ssh_config
SetConfigStyle "ssh"
# auto-create the "Host *" line if it doesn't exist
SetConfigOption "*" "ForwardAgent" "yes"
}
These are convergent functions implemented with a good understanding
of the configuration syntax, and have the additional benefit of being
easy to read. They can be done with the current editfiles syntax,
but I wouldn't want to use something like that.
Ted
- Re: Complex Editfiles Examples, (continued)
- Re: Complex Editfiles Examples, Jamie Wilkinson, 2003/12/02
- Re: Complex Editfiles Examples, Russell Adams, 2003/12/03
- Re: Complex Editfiles Examples, Jamie Wilkinson, 2003/12/04
- Re: Complex Editfiles Examples, Systems Administrator, 2003/12/04
- Editfiles Considered Harmful (was: Re: Complex Editfiles Examples), Eric Sorenson, 2003/12/04
- Re: Editfiles Considered Harmful (was: Re: Complex Editfiles Examples), Mark Burgess, 2003/12/04
- Re: Editfiles Considered Harmful (was: Re: Complex Editfiles Examples), Luke A. Kanies, 2003/12/04
- Re: [Cfengine] Re: Editfiles Considered Harmful (was: Re: Complex Editfiles Examples), Tjeerd Hes, 2003/12/04
- Re: Editfiles Considered Harmful (was: Re: Complex Editfiles Examples), Alexander Jolk, 2003/12/04
- Re: Editfiles Considered Harmful (was: Re: Complex Editfiles Examples), Mark Burgess, 2003/12/04
- Re: Editfiles Considered Harmful,
Ted Zlatanov <=
- Re: Editfiles Considered Harmful, Chip Seraphine, 2003/12/04
- Re: Editfiles Considered Harmful, Ted Zlatanov, 2003/12/04
- Message not available
- Re: Editfiles Considered Harmful, Rick, 2003/12/08
- Re: Editfiles Considered Harmful, Ted Zlatanov, 2003/12/04
- Re: Editfiles Considered Harmful (was: Re: Complex Editfiles Examples), Chip Seraphine, 2003/12/04
- Re: Editfiles Considered Harmful (was: Re: Complex Editfiles Examples), Eric Sorenson, 2003/12/04
- Re: Editfiles Considered Harmful (was: Re: Complex Editfiles Examples), Luke A. Kanies, 2003/12/04
- Re: Editfiles Considered Harmful (was: Re: Complex Editfiles Examples), Jamie Wilkinson, 2003/12/04
- Re: Editfiles Considered Harmful (was: Re: Complex Editfiles Examples), Jeff Waugh, 2003/12/05
- Re: Editfiles Considered Harmful (was: Re: Complex Editfiles Examples), Paul Heinlein, 2003/12/05