Dennis Camera
4aebb1f127
[type/__uci*] Update man.rst regarding quoting requirements
2020-11-01 21:35:24 +01:00
Dennis Camera
8728817af6
[type/__uci] Unquote UCI reported values
...
Without unquoting values printed in single quotes by UCI would always lead to
the state explorer reporting "different".
2020-11-01 21:35:24 +01:00
Dennis Camera
b99ca3cbdf
[type/__uci_section] Split up --option and --list
2020-11-01 21:35:16 +01:00
Dennis Camera
49e867fab4
[type/__uci_section] Add more parameter checks
2020-11-01 15:49:17 +01:00
Dennis Camera
0840afce03
[type/__uci] Add --type parameter
2020-11-01 15:49:13 +01:00
Dennis Camera
fe26c119b5
[type/__uci*] Update man pages
2020-11-01 13:34:31 +01:00
Dennis Camera
c37253b852
[type/__uci_section] Check __object_id for syntax errors
2020-11-01 13:34:31 +01:00
Dennis Camera
3a6b085145
[type/__uci] Check __object_id for syntax errors
2020-11-01 13:34:31 +01:00
Dennis Camera
f782a5a370
[type/__uci] Refactor to do proper quoting of UCI commands
2020-11-01 13:34:31 +01:00
Dennis Camera
d453d964e1
[type/__uci_section] Fix in section matching
2020-11-01 13:34:31 +01:00
Dennis Camera
179815b5e9
[type/__uci_section] Ignore SC2015 error (notabug)
2020-11-01 13:34:31 +01:00
Dennis Camera
4da3968118
[type/__uci_section] Add type
2020-11-01 13:34:31 +01:00
Dennis Camera
3ef638a611
[type/__uci_commit] Fail when uci(1) reports errors
2020-11-01 13:34:31 +01:00
Dennis Camera
cc599dab15
[type/__uci_commit] Move uncommited changes check from explorer to code-remote
...
This is done to prevent false positives/negatives (see NOTE in code)
2020-11-01 13:34:22 +01:00
Dennis Camera
e7369a1f99
[type/__uci_commit] Abort if uncommited changes are present on the target
2020-11-01 13:32:00 +01:00
Dennis Camera
3a3be36310
[type/__uci_commit] Send message on commit of a transaction
2020-11-01 11:01:25 +01:00
Dennis Camera
d3574b2d3e
[type/__uci] Send messages when options are set to be altered
2020-11-01 11:01:25 +01:00
Dennis Camera
d8f20a6a20
[type/__uci] Implement "real" transactions using batch files
2020-11-01 11:01:25 +01:00
Dennis Camera
a09120977f
[type/__uci] Allow omission of --value parameter if --state absent
2020-11-01 11:01:25 +01:00
Dennis Camera
55e7b32449
[type/__uci] Only generate __uci_commit if changes are required
2020-11-01 11:01:25 +01:00
Dennis Camera
e30ecdda53
Add __uci and __uci_commit types
2020-11-01 11:01:25 +01:00
Dennis Camera
82a9aa7902
[type/__apt_norecommends] Use 00InstallRecommends file as debian-installer does
...
debian-installer can be preseeded with `base-installer/install-recommends` to
disable installation of recommended packages already during OS installation.
d-i will then create the file `/etc/apt/apt.conf.d/00InstallRecommends`
(cf. https://salsa.debian.org/installer-team/base-installer/-/blob/master/library.sh ).
__apt_norecommends should use the same file to avoid having two config files
effectively doing the same thing.
2020-10-29 10:45:18 +01:00
eda96a06a0
Merge branch 'fix/type/__file/pre-exists-dryrun' into 'master'
...
__file: Fix --state pre-exists
See merge request ungleich-public/cdist!944
2020-10-29 09:29:41 +01:00
Dennis Camera
367da4b77e
[type/__file] Fix --state pre-exists
2020-10-28 18:18:24 +01:00
b139ba2a5c
Merge branch '__update_alternatives_improvements' into 'master'
...
[__update_alternatives] rewrite and support --install
See merge request ungleich-public/cdist!936
2020-10-19 06:55:35 +02:00
f96f23e970
Merge branch '__acl_remove_deprecated' into 'master'
...
[__acl] remove deprecated parameters, fix some bugs and improve manual
Closes #823
See merge request ungleich-public/cdist!933
2020-10-19 06:54:13 +02:00
716cd37281
[__update_alternatives] rewrite and support --install
2020-10-18 23:57:25 +03:00
e3d906a85f
[__acl] remove deprecated parameters, fix some bugs and improve manual
2020-10-18 23:54:01 +03:00
b2e6afb57e
__download: adapt download+unpack example in manpage
2020-10-17 23:01:36 +02:00
507fa6fa93
__download: fix non-existent parameter of __unpack
...
Probably happened due to renaming .. guess it's correct now.
2020-10-17 17:09:41 +02:00
1057ceef01
Merge branch 'line-replace' into 'master'
...
[__line] Add support for '--state replace'
See merge request ungleich-public/cdist!939
2020-10-09 06:51:45 +02:00
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
Mark Verboom
5aeed14b1b
Fixed calling of __systemd_service type with correct arguments.
2020-10-08 16:15:20 +02:00
Darko Poljak
3fa74b454a
Fix typo
2020-09-30 15:43:32 +02:00
f994226d0e
[__package_pkgng_freebsd] Bootstrap pkg if necessary
...
In a pristine FreeBSD base installation, pkg is really a bootstrapper utility,
in such cases the type used to fail instead of automatically bootstrapping pkg.
2020-09-29 19:47:59 +02:00
Darko Poljak
0fc10749ed
Fix shellcheck
2020-09-21 09:11:35 +02:00
decc0ad54d
[__package_pip] detect pip binary
2020-09-19 12:38:20 +03:00
Darko Poljak
53b91adbd8
Fix shellcheck
2020-09-11 14:20:57 +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
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
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
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
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