Dennis Camera
5eb9fec550
[__hostname] Add support for Slackware
2019-10-27 20:06:12 +01:00
Dennis Camera
66c85230a0
[__hostname] Make __key_value names more meaningful
2019-10-27 20:02:59 +01:00
Dennis Camera
b9571a2bbd
[__hostname] Add support for Void Linux
2019-10-27 20:02:55 +01:00
Dennis Camera
cbae534af5
[__hostname] Patch for modern ArchLinux without hostname(1)
2019-10-26 21:01:54 +02:00
Dennis Camera
f276813f7f
[__hostname] Remove incorrectly sent messages (again)
...
The --onchage sent the message on the target where messaging is not supported.
Now the result is that a "changed" message is only emitted when the running
hostname changes, not when the persistent hostname changes.
2019-10-26 17:27:15 +02:00
Dennis Camera
e7279680ed
[__hostname/man.rst] Add link to RFC 1178
2019-10-26 17:12:08 +02:00
Dennis Camera
6eec5f87a4
[__hostame] Simplify and revert hostnamectl to be a last resort
2019-10-26 17:11:35 +02:00
Dennis Camera
b65ceba569
[__hostame] Resolve shellcheck errors
2019-10-25 02:16:43 +02:00
Dennis Camera
d4313c7501
[__hostname] Fix checking of maximum hostname length against sysconf(3)
2019-10-25 01:41:26 +02:00
Dennis Camera
629d443f5a
[__hostname] Fix "command not found" errors with old Bash
2019-10-25 01:40:48 +02:00
Dennis Camera
c3b066c147
[__hostname] Check hostname length if getconf(1) is available
2019-10-24 19:44:51 +02:00
Dennis Camera
cee553a6dd
[__hostname] Improve systemd hostname setting
...
This means we write to /etc/hostname before running hostnamectl, so that
it can overwrite the file if it wants to.
2019-10-12 18:49:31 +02:00
Dennis Camera
30c7d153e8
[__hostname] Only write to distro specific file when hostnamectl is missing
2019-10-12 18:47:27 +02:00
Dennis Camera
c11e757dfa
[__hostname] Add support for Gentoo
2019-10-07 12:06:24 +02:00
Dennis Camera
064e992a7a
[__hostname] Support openSUSE and replace printf with echo
2019-10-06 21:03:49 +02:00
Dennis Camera
da1d70e16a
[__hostname] Also quote hostname in FreeBSD rc.conf
2019-10-06 18:43:27 +02:00
Dennis Camera
6e1a105c22
[__hostname] Lint
2019-10-06 18:37:40 +02:00
Dennis Camera
cbb108d61c
[__hostname] Copy FQDN-logic to gencode-remote
...
Otherwise, the code-remote gets run on the remote every time.
2019-10-06 18:35:29 +02:00
Dennis Camera
3e7cf68de5
[__hostname] Source sysconfig file instead of processing through AWK
...
This way quotes and expansions will be handled correctly.
2019-10-06 18:14:35 +02:00
Dennis Camera
74568e8a0a
[__hostname] Use FQDN as hostname on RedHat derivatives and BSDs
2019-10-06 18:02:58 +02:00
Dennis Camera
7bf203509b
[__hostname] Use __key_value exact_delimiter for shell-like files
2019-10-06 18:02:13 +02:00
Dennis Camera
77210c349e
[__hostname] Extend os switches with RedHat-derivatives (CentOS, Fedora, RedHat, Scientific)
2019-10-06 18:01:36 +02:00
Dennis Camera
d43eb5b22f
[__hostname] Add support for NetBSD
2019-10-06 14:02:13 +02:00
Dennis Camera
1bab641c94
[explorer/hostname] Do not shorten hostname in any case
2019-10-05 18:43:06 +02:00
Dennis Camera
56c654808d
[__hostname] Unify persistent hostname explorers
2019-10-05 18:27:48 +02:00
Dennis Camera
f5342e9a35
[explorer/hostname] Remove code reading persistent hostname
2019-10-04 20:05:01 +02:00
Dennis Camera
ee440ec619
[__hostname] Compress state check
2019-10-03 21:41:51 +02:00
Dennis Camera
81ba849af8
Move __hostname hostname explorer to global scope
2019-10-03 19:19:06 +02:00
Dennis Camera
abc765bd99
[__hostname/explorer/hostname] Darwin: Always fall back to hostname if scutil is missing or fails
2019-10-03 18:23:17 +02:00
Dennis Camera
2804a8bae6
[__hostname] Add support for macosx
2019-10-03 18:21:35 +02:00
Dennis Camera
3c9eb7bce7
[__hostname] Support all systemd OSes and prefer hostnamectl
2019-10-03 18:21:35 +02:00
Darko Poljak
7981f81dcd
++changelog
2019-10-01 13:18:01 +02:00
69e5e538ac
Merge branch 'nogetent-dotssh' into 'master'
...
[__ssh_dot_ssh] Fall back to /etc files if getent(1) is not available
See merge request ungleich-public/cdist!796
2019-10-01 13:16:25 +02:00
b57482d387
Merge branch 'nogetent-sshkeys' into 'master'
...
[__ssh_authorized_keys] Fall back to /etc files if getent(1) is not available
See merge request ungleich-public/cdist!797
2019-10-01 13:15:29 +02:00
b7426b30e7
Merge branch 'nogetent-user' into 'master'
...
[__user] Fall back to /etc files if getent(1) is not available
See merge request ungleich-public/cdist!795
2019-10-01 13:14:28 +02:00
65f9161352
Merge branch 'nogetent-group' into 'master'
...
[__group] Fall back to /etc files if getent(1) is not available
See merge request ungleich-public/cdist!798
2019-10-01 13:12:46 +02:00
Dennis Camera
259aa13b6a
[__ssh_authorized_keys] Better path checks
2019-10-01 11:07:29 +02:00
Dennis Camera
bad3a4a4cb
[__group] Fall back to /etc files if getent(1) is not available
...
Some (embedded) systems (and Mac OS X) don't provide getent(1). The workaround
parses /etc/group under the assumption that the system only uses local users and
groups.
2019-10-01 10:53:27 +02:00
Dennis Camera
95ab68a272
[__ssh_authorized_keys] Fall back to /etc files if getent(1) is not available
...
Some (embedded) systems don't provide getent(1). The workaround parses
/etc/passwd and /etc/group under the assumption that these sysems only use local
users and groups.
2019-10-01 08:43:32 +02:00
Dennis Camera
092dd19611
[__ssh_dot_ssh] Fall back to /etc files if getent(1) is not available
...
Some (embedded) systems don't provide getent(1). The workaround parses
/etc/passwd and /etc/group under the assumption that these sysems only use local
users and groups.
2019-10-01 08:43:12 +02:00
Dennis Camera
2d751443a4
[__user] Fall back to /etc files if getent(1) is not available
...
On systems without getent(1) the script would fail because "command -v getent"
exits with 1 which terminates the script due to it being called by sh -e.
2019-10-01 08:12:57 +02:00
Darko Poljak
828b4c867c
Release 6.0.0
2019-10-01 07:14:35 +02:00
Darko Poljak
50156bd7cd
shellcheck
2019-10-01 07:10:37 +02:00
Darko Poljak
9d8a0dae66
++changelog
2019-10-01 07:01:38 +02:00
f86768ab16
Merge branch 'fix_apt_key_dearmor' into 'master'
...
__apt_key: fix key dearmor when fetching from uri
See merge request ungleich-public/cdist!791
2019-10-01 07:00:33 +02:00
9d26fbdfb8
Merge branch 'git-recursive' into 'master'
...
__git type: Add --recursive option
See merge request ungleich-public/cdist!794
2019-10-01 06:25:31 +02:00
Dennis Camera
5c8e31b2ef
[type/__git] Improve documentation of --recursive option
2019-09-30 13:22:55 +02:00
Darko Poljak
97bcfcc23c
Release preos, i.e. make it non-beta
2019-09-20 19:56:17 +02:00
Darko Poljak
b657ba8221
Fix log level when verbosity option is not specified
2019-09-20 19:51:55 +02:00
Nico Schottelius
90d9326740
[__sysctl] add alpine support
2019-09-20 21:17:13 +09:00