cdist configuration management Latest manual: https://www.cdi.st/manual/latest/ Home page: https://www.cdi.st
Find a file
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
bin Update helper script 2020-09-21 09:17:34 +02:00
cdist [__line] Add support for '--state replace' 2020-10-09 06:51:44 +02:00
completions Implement preos 2019-09-20 07:15:37 +02:00
configuration Restrict colored_output value to always/never/auto. 2020-06-06 13:45:31 +02:00
docs ++changelog 2020-09-29 05:57:54 +02:00
hacking Add timing hack / test1 2019-10-18 19:45:19 +02:00
other Fix typo in cdist-ci image README 2020-04-21 08:15:51 +02:00
scripts Adapt; update docs and code style 2020-06-13 13:44:01 +02:00
.gitattributes Re-arrange Makefile and build-helper script 2019-05-08 22:34:03 +02:00
.gitignore Rm cdist-type prefix and man page ref from docs 2019-12-06 10:00:32 +01:00
.gitlab-ci.yml Patch CI configuration to use cdist-ci image 2020-04-21 08:16:46 +02:00
LICENSE Add LICENSE 2019-12-01 14:23:02 +01:00
Makefile Fix building man pages 2020-07-29 11:31:12 +02:00
MANIFEST.in add package data info 2012-10-29 22:18:32 +01:00
PKGBUILD.in Update old homepage residual refs and non working git protocol 2019-05-09 08:26:42 +02:00
README-maintainers Re-arrange Makefile and build-helper script 2019-05-08 22:34:03 +02:00
README.md README: add bits about cdist-contrib 2020-04-27 16:30:52 +03:00
setup.py Add pycodestyle ignores 2019-11-27 14:59:25 +01:00

cdist

cdist is a usable configuration management system.

It adheres to the KISS principle and is being used in small up to enterprise grade environments.

For more information have a look at homepage or at docs/src for manual in reStructuredText format.

Contributing

Merge/Pull requests can be made in both upstream GitLab (managed by ungleich) and GitHub project.

Issues can be made and other project management activites happen only in GitLab (needs ungleich account).

For community-maintained types there is cdist-contrib project.

Participating

IRC: #cdist @ freenode

Matrix: #cdist:ungleich.ch

Mattermost: https://chat.ungleich.ch/ungleich/channels/cdist