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
Darko Poljak
652c891858
++changelog
2020-09-29 05:57:54 +02:00
84ade29ca9
Merge branch 'docs/custom-remote-exec-copy-examples' into 'master'
...
Add custom remote copy/exec examples
See merge request ungleich-public/cdist!938
2020-09-29 05:56:38 +02:00
Darko Poljak
73d6c9d469
Add custom remote copy/exec examples
2020-09-27 10:17:35 +02:00
8ab1b6a03d
Merge branch 'fix/docs-makefile' into 'master'
...
docs: make varaibles environment-aware
See merge request ungleich-public/cdist!937
2020-09-24 06:55:30 +02:00
84a7818121
docs: make varaibles environment-aware
...
There are all overwriting the environment, even the comment states
otherwise. Fixes it.
2020-09-23 20:29:47 +02:00
Darko Poljak
b6922508b9
Update helper script
2020-09-21 09:17:34 +02:00
Darko Poljak
0fc10749ed
Fix shellcheck
2020-09-21 09:11:35 +02:00
Darko Poljak
89a0080e13
++changelog
2020-09-21 09:09:26 +02:00
139a782c96
Merge branch '__package_pip_detect_pip_bin' into 'master'
...
[__package_pip] detect pip binary
See merge request ungleich-public/cdist!935
2020-09-21 09:06:44 +02:00
2e6c12c27c
Merge branch 'clarify-stdin-input' into 'master'
...
Clarify stdin input
Closes #836
See merge request ungleich-public/cdist!934
2020-09-21 09:04:06 +02:00
89b6215115
Clarify stdin input
...
Resolve #836 .
2020-09-21 09:04:05 +02:00
decc0ad54d
[__package_pip] detect pip binary
2020-09-19 12:38:20 +03:00
Darko Poljak
2885c6a248
Release 6.8.0
2020-09-11 14:20:57 +02:00
Darko Poljak
53b91adbd8
Fix shellcheck
2020-09-11 14:20:57 +02:00
Darko Poljak
6b262a61c1
++changelog
2020-09-10 13:24:58 +02:00
a20ab63e60
Merge branch 'fix/__systemd_service/manpage' into 'master'
...
__systemd_service: fix manpage typos
See merge request ungleich-public/cdist!931
2020-09-10 13:21:19 +02:00
b1375464cc
__systemd_service: fix manpage typos
2020-09-09 21:11:40 +02:00
f5b534df71
Merge branch 'fix/type/__timezone/singleton' into 'master'
...
__timezone: Make singleton
See merge request ungleich-public/cdist!916
2020-09-08 07:20:01 +02:00
Darko Poljak
b5a40eb0d1
++changelog
2020-08-27 12:25:11 +02:00
a4a3b98568
Merge branch 'feature/expand-require-separator' into 'master'
...
Expand and split by consecutive require delimiters
Closes #832
See merge request ungleich-public/cdist!930
2020-08-27 12:22:55 +02:00
Darko Poljak
c17541f24c
Expand and split by consecutive require delimiters
...
Resolves #832 .
2020-08-24 07:16:28 +02:00
Darko Poljak
ba26a437be
++changelog
2020-08-18 11:06:19 +02:00
a8ea56253c
Merge branch 'feature/explorer/os_version/debian-sid' into 'master'
...
explorer/os_version: Convert Debian sid to version number.
Closes #833
See merge request ungleich-public/cdist!927
2020-08-18 11:05:12 +02:00
2c1eca9ee7
Merge branch '__download_man_fix' into 'master'
...
[__download] fix manual: onchange parameter in wrong section
See merge request ungleich-public/cdist!929
2020-08-18 11:02:18 +02:00
52b75e513f
Merge branch '__unpack_onchange' into 'master'
...
[__unpack] add --onchange
See merge request ungleich-public/cdist!928
2020-08-18 10:59:55 +02:00
d239169c4f
[__download] fix manual: onchange parameter in wrong section
2020-08-18 00:48:58 +03:00
502d753047
[__unpack] add --onchange
2020-08-18 00:46:07 +03:00
Dennis Camera
6fed178529
[explorer/os_version] Convert Debian sid to version number.
...
Conversion of Debian sid to versions is done based on Debian codenames.
The version number is the version number of the final release - 0.01.
It is unknown if Debian < 4.0 has any sort of version information
available (apart from maybe checking base-files package version).
But I don't think any of these systems are still alive,
so I think going with 3.99 is fine for those.
2020-08-17 09:31:40 +02:00
Darko Poljak
8f94a226c7
++changelog
2020-08-15 21:54:07 +02:00
d6b44769e1
Merge branch 'fix/type/__locale_system/version-cmp' into 'master'
...
__locale_system: Fix version comparison
See merge request ungleich-public/cdist!923
2020-08-15 21:51:52 +02:00
ssrq
fa967631e3
Merge branch 'master' into 'fix/type/__locale_system/version-cmp'
...
# Conflicts:
# cdist/conf/type/__locale_system/manifest
2020-08-15 21:17:25 +02:00
Darko Poljak
74dd47c8c3
++changelog
2020-08-15 21:11:43 +02:00
7b0a4f6831
Merge branch 'feature/alpine-filesystem' into 'master'
...
Add Alpine Linux as supported for __filesystem.
See merge request ungleich-public/cdist!925
2020-08-15 21:09:37 +02:00
54c525e36c
Merge branch '__unpack_tar_extra_args' into 'master'
...
[__unpack] add parameter --tar-extra-args
See merge request ungleich-public/cdist!922
2020-08-15 21:07:20 +02:00
4082359a2f
Merge branch 'fix/explorer/os/opensuse' into 'master'
...
explorer/os: Fix OS detection for openSUSE
See merge request ungleich-public/cdist!924
2020-08-15 21:06:31 +02:00
6f021889ee
Merge branch '__locale_system_debian_fix' into 'master'
...
[__locale_system] fix for debian and ubuntu
See merge request ungleich-public/cdist!921
2020-08-15 20:59:59 +02:00
17ab4bd80c
Add Alpine Linux as supported for __filesystem.
2020-08-06 11:45:05 +02:00
Dennis Camera
b370b70ff4
[explorer/os] Fix OS detection for openSUSE
...
All distros with ID_LIKE suse should be treated as "suse".
My openSUSE Leap 15.1 installation has:
ID_LIKE="suse opensuse"
This patch doesn't require a strict "suse" value but only the word suse to be in
the list.
2020-08-02 22:50:06 +02:00
Dennis Camera
7b480f4293
[type/__locale_system] Fix version extraction for SuSE
2020-08-02 22:47:46 +02:00
Dennis Camera
71710fa00a
[type/__locale_system] Implement "proper" version comparison
...
Proper in the sense that it can handle all numeric version numbers even if they
are not floating point (e.g. 16.04.6).
2020-08-02 20:59:22 +02:00
Dennis Camera
885d5a58f4
[type/__locale_system] Fix floating point version comparison
2020-08-02 17:04:06 +02:00
935f2395bc
[__locale_system] fix for debian and ubuntu
...
ubuntu 6.10 and debian etch are 10+ years old and EOL. rather than
preserving compatibility I'll just remove it. while /etc/environment
works too, correct place is /etc/default/locale (as it was before
breaking change). also /etc/debian_version (os_version explorer) may
contain minor version with dot (10.5) or string (bullseye/sid).
2020-08-02 13:54:30 +03:00
d37d2dc307
[__unpack] add parameter --tar-extra-args
2020-08-02 13:53:38 +03:00
7e1428ab3c
Merge branch 'bugfix/sphinx-docs-build' into 'master'
...
Fix building man pages
Closes #830
See merge request ungleich-public/cdist!919
2020-07-29 16:59:26 +02:00
Darko Poljak
c053a2c4a0
Fix building man pages
...
Resolves #830 .
2020-07-29 11:31:12 +02:00
Darko Poljak
f5b367dfdb
Release 6.7.0
2020-07-28 07:14:26 +02:00
Darko Poljak
76bb214b53
++changelog
2020-07-27 15:31:38 +02:00
a5f25faf25
Merge branch 'fix/type/__sysctl/netbsd-path' into 'master'
...
__sysctl: Fix on NetBSD
See merge request ungleich-public/cdist!918
2020-07-27 15:30:57 +02:00
a6cd767c8f
Merge branch 'fix/explorer/netbsd' into 'master'
...
Fix global explorers for NetBSD
See merge request ungleich-public/cdist!917
2020-07-27 15:29:52 +02:00