67f1475a20
Merge branch 'feature/type/__apt_norecommends/reuse-file' into 'master'
...
__apt_norecommends: Use 00InstallRecommends file as debian-installer does
See merge request ungleich-public/cdist!945
2020-11-06 08:26:36 +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
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
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
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
17ab4bd80c
Add Alpine Linux as supported for __filesystem.
2020-08-06 11:45:05 +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
Darko Poljak
c053a2c4a0
Fix building man pages
...
Resolves #830 .
2020-07-29 11:31:12 +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
Dennis Camera
3a87a447d0
[type/__sysctl] Fix on NetBSD
2020-07-27 15:22:21 +02:00
5c5890d458
Merge branch 'feature/type/__locale_system/os-support' into 'master'
...
__locale_system: Wider OS support
See merge request ungleich-public/cdist!914
2020-07-27 12:58:53 +02:00
Dennis Camera
d26c36914a
[__timezone] Make type singleton
2020-07-27 11:06:14 +02:00
8a8a48313c
Merge branch '__unpack' into 'master'
...
new type: __unpack
See merge request ungleich-public/cdist!893
2020-07-27 06:20:21 +02:00
73f1937636
[__unpack] no mkdir by default, because destination can be file, but tar needs mkdir andrar needs slash at the end
2020-07-27 06:20:21 +02:00
1b18b9487e
Merge branch 'fix/type/__key_value/solaris-awk' into 'master'
...
__key_value: Get AWK from POSIX PATH
See merge request ungleich-public/cdist!913
2020-07-27 06:01:53 +02:00
263c7a90a8
Merge branch 'fix/type/__package_apt/legacy-norecommends' into 'master'
...
__package_apt: Fix for legacy APT versions that do not support --no-install-recommends.
See merge request ungleich-public/cdist!912
2020-07-27 05:58:40 +02:00
Dennis Camera
70d1228dc0
[type/__locale_system] Add support for FreeBSD
2020-07-26 20:10:52 +02:00
Dennis Camera
511d8c96aa
[type/__locale_system] Add support for Slackware
2020-07-26 20:10:52 +02:00
Dennis Camera
a923e75d9b
[type/__locale_system] Add support for NetBSD
2020-07-26 20:10:52 +02:00
Dennis Camera
cbf22f3b2c
[type/__locale_system] Add support for Solaris
2020-07-26 20:10:52 +02:00
Dennis Camera
0ae0935afa
[type/__locale_system] Add support for SuSE
2020-07-26 20:10:34 +02:00
Dennis Camera
630d987d5f
[type/__locale_system] Add support for Void Linux
2020-07-26 20:10:34 +02:00
Dennis Camera
0ef54a721d
[type/__locale_system] Add support for Gentoo Linux
2020-07-26 20:10:34 +02:00
Dennis Camera
47e28fc441
[type/__locale_system] Support old Debian derivatives
2020-07-26 20:10:34 +02:00
Dennis Camera
a590504436
[type/__locale_system] RedHat systems on systemd use /etc/locale.conf
2020-07-26 20:10:34 +02:00