c5a8004c9a
Merge branch 'hosts-aliases' into 'master'
...
__hosts: add --alias parameter
See merge request ungleich-public/cdist!901
2020-06-30 22:52:52 +02:00
Dennis Camera
3860f1feea
[type/{__file/__directory}] Support setuid,setguid,sticky bits
2020-06-30 15:10:30 +02:00
Dennis Camera
6467ccbdcc
[type/__user] Make shellcheck happy
2020-06-30 14:31:11 +02:00
ssrq
9e33a8f42f
Merge branch 'master' into 'fix/type/__user/openbsd-shadow'
...
# Conflicts:
# cdist/conf/type/__user/explorer/shadow
2020-06-30 14:26:23 +02:00
Dennis Camera
999e7b0134
[type/__user] Fix shadow explorer for OpenBSD
2020-06-30 14:23:34 +02:00
Dennis Camera
a263fdfe58
[__hosts] Add --alias parameter
...
The --alias parameter allows to specify a hostname and multiple aliases on a
single /etc/hosts line.
2020-06-30 14:05:26 +02:00
99b5dcd8f0
Merge branch 'master' into __download_improvements
2020-06-28 16:57:13 +03:00
996e7fc09c
Merge branch 'master' into __download_improvements
2020-06-28 16:55:11 +03:00
b6bf90e3f1
[__download] update manual
2020-06-28 16:43:45 +03:00
85614aabd6
[__download] add --download (local|remote), update manual
2020-06-28 16:38:15 +03:00
Darko Poljak
077989e8fd
Remove annoying warnings
...
Those warnings don't have any specail meaning and usage.
Resolve #825 .
2020-06-27 15:55:57 +02:00
684043bf37
Merge branch 'fix/type/__package_opkg/lock' into 'master'
...
__package_opkg: Add locking
See merge request ungleich-public/cdist!896
2020-06-25 06:31:16 +02:00
ceedcd02f2
Merge branch 'feature/type/__locale_system/support-devuan' into 'master'
...
__locale_system: "Whitelist" Devuan
See merge request ungleich-public/cdist!900
2020-06-25 06:24:17 +02:00
Dennis Camera
5364d3bc90
[type/__package_opkg] Implement flock locking if available
2020-06-24 21:06:10 +02:00
Dennis Camera
a9778965be
[type/__package_opkg] Use mkdir(1) to lock instead of noclobber
...
noclobber is potentially unsafe, because it relies on the underlying shell to
implement noclobber in a safe way that avoids race conditions between multiple
processes.
mkdir is safer because it is mandated by POSIX to "fail" if the target already
exists.
2020-06-24 08:47:22 +02:00
Darko Poljak
49dde11def
Remove deprecated __pf_apply
2020-06-24 07:04:32 +02:00
Dennis Camera
3649555f35
[type/__package_opkg] Do not lock execution of code-remote (revert)
...
Instead, rely on `nonparallel`.
In any case cdist should never run explorer and code concurrently even if the
dependency graph would allow to do so as it would result in many more
synchronization issues than this one.
2020-06-22 09:32:57 +02:00
26dfdf37c2
[__download] support multiple checksum formats and download utilities, add --onchange and other minor changes
2020-06-21 23:39:53 +03:00
d478bef8a6
Merge branch 'lint/py3-classes' into 'master'
...
Consequently use Python 3-style classes
See merge request ungleich-public/cdist!898
2020-06-21 17:54:56 +02:00
e67215f93d
Merge branch 'lint/no-python-shebangs' into 'master'
...
Remove unnecessary Python shebangs
See merge request ungleich-public/cdist!897
2020-06-21 17:53:44 +02:00
Dennis Camera
6aae58dea7
[type/__package_opkg] Mark lock variables readonly
2020-06-21 17:35:28 +02:00
Dennis Camera
ce07021580
Do not subclass object
2020-06-21 16:53:47 +02:00
Dennis Camera
a6a3fb40bf
Remove unnecessary Python shebangs
2020-06-21 16:03:09 +02:00
Dennis Camera
e79b26a61f
[type/__package_opkg] Also lock execution of code-remote
2020-06-21 15:53:01 +02:00
Dennis Camera
97e48be39e
[type/__package_opkg] Fix explorer running in parallel
2020-06-21 15:52:57 +02:00
d59ba09d71
Merge branch '__download' into 'master'
...
new type: __download
See merge request ungleich-public/cdist!892
2020-06-17 13:39:07 +02:00
201050a9e5
new type: __download
2020-06-16 20:53:31 +03:00
Darko Poljak
59b98091d7
Adapt; update docs and code style
2020-06-13 13:44:01 +02:00
Steven Armstrong
57e352cd1e
log server is also usefull for cdist config
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2020-06-13 13:44:01 +02:00
Steven Armstrong
831bfc822b
remove unused code
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2020-06-13 13:44:01 +02:00
Steven Armstrong
6e9e9ad557
implement log server to capture nested logging output
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2020-06-13 13:44:01 +02:00
Darko Poljak
4167f9f60c
Use proper format string with name
2020-06-11 14:22:54 +02:00
Darko Poljak
840e417eb7
Fix emulator colored logging
2020-06-11 14:16:37 +02:00
7c490a703d
[__clean_path] add --path parameter
2020-06-10 11:38:14 +03:00
Darko Poljak
a251e53495
Merge branch 'fix_os_explorer_sles15' of https://github.com/dheule/cdist into dheule-fix_os_explorer_sles15
2020-06-08 13:43:41 +02:00
Dennis Camera
23e66e08fa
Restrict colored_output value to always/never/auto.
2020-06-06 13:45:31 +02:00
Dennis Camera
89e48734bf
Let config file and command line override NO_COLOR envvar
2020-06-05 12:23:36 +02:00
Dennis Camera
cdb0d2be41
Patch tests
2020-06-03 23:21:50 +02:00
Dennis Camera
747c6b1076
Respect NO_COLOR environment variable
2020-06-03 22:17:52 +02:00
Daniel Heule
6a611e556a
fix os explorer for sles15
2020-06-02 13:40:21 +02:00
Darko Poljak
55ebd1a4c5
Fix man build failure in newer sphinx versions
2020-06-01 20:22:40 +02:00
ba77ea9edc
[UX] Add option to enable LogLevel-based coloured output.
...
This makes it easier for new and experienced users to run cdist with higher
verbosity levels, both to know that things are working as expected and to debug
issues.
Documentation has been modified accordingly and default behaviour is not
changed.
2020-06-01 19:11:58 +02:00
Darko Poljak
988190363a
Resolve shellcheck SC1090
2020-05-30 15:10:13 +02:00
29c0180204
[__ssh_authorized_keys] add --remove-unknown parameter
2020-05-28 23:31:13 +03:00
Darko Poljak
f4e1bbc87e
Fix multiple log lines
...
Fixes #813 .
2020-05-24 01:10:56 +02:00
716d3554f3
[__user] fix user delete on freebsd
2020-05-23 00:48:35 +03:00
dab32b0cb6
Merge branch '__group_freebsd_fix' into 'master'
...
[__group] fix --gid on freebsd
See merge request ungleich-public/cdist!881
2020-05-22 10:08:29 +02:00
3bcbd95269
[__motd] debian|ubuntu|devuan use /etc/motd
2020-05-22 02:36:49 +03:00
bf25a18a04
[__group] fix --gid on freebsd
2020-05-22 02:31:38 +03:00
ad58ea79c2
[__ssh_authorized_keys] Fix bug where --option was not multiple
...
This went against both documentation and intent.
2020-05-18 20:01:01 +02:00