cdist-backup/cdist/conf
Evil Ham c030deea3d [__line] Add support for '--state replace'
It is currently counter-intuitive that something like:

    # File '/thing' contents
    #SomeSetting WrongValue

    # Manifest
    __line '/thing' \
           --line 'SomeSeting GoodValue' \
           --regex '^(#[[:space:]]*)?SomeSetting[[:space:]]'

Produces:

    # Resulting '/thing' contents
    #SomeSetting WrongValue

This makes sense given the implementation, but it masks a very common use-case.

Changing the default behaviour for such a base type is not really an option, so
instead we add a `replace` as a valid value for `--state`, which would result
in:

    # Resulting '/thing' contents with: --state replace
    SomeSetting GoodValue

For compatibility, if the regex is missing, `--state replace` behaves just as
`--state present`.
2020-10-09 06:51:44 +02:00
..
explorer Fix shellcheck 2020-09-11 14:20:57 +02:00
manifest re-add sample, but longer name 2012-10-30 16:33:18 +01:00
type [__line] Add support for '--state replace' 2020-10-09 06:51:44 +02:00
.gitignore make package_data work 2012-10-29 22:50:27 +01:00
README make package_data work 2012-10-29 22:50:27 +01:00

This is a sample configuration that can be used as an example
for /etc/cdist.

For instance:

   [root@kr etc]# ln -s ~nico/p/cdist/conf/ /etc/cdist