Dennis Camera
b9571a2bbd
[__hostname] Add support for Void Linux
6 years ago
Dennis Camera
cbae534af5
[__hostname] Patch for modern ArchLinux without hostname(1)
6 years ago
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.
6 years ago
Dennis Camera
e7279680ed
[__hostname/man.rst] Add link to RFC 1178
6 years ago
Dennis Camera
6eec5f87a4
[__hostame] Simplify and revert hostnamectl to be a last resort
6 years ago
Dennis Camera
b65ceba569
[__hostame] Resolve shellcheck errors
6 years ago
Dennis Camera
d4313c7501
[__hostname] Fix checking of maximum hostname length against sysconf(3)
6 years ago
Dennis Camera
629d443f5a
[__hostname] Fix "command not found" errors with old Bash
6 years ago
Dennis Camera
c3b066c147
[__hostname] Check hostname length if getconf(1) is available
6 years ago
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.
6 years ago
Dennis Camera
30c7d153e8
[__hostname] Only write to distro specific file when hostnamectl is missing
6 years ago
Dennis Camera
c11e757dfa
[__hostname] Add support for Gentoo
6 years ago
Dennis Camera
064e992a7a
[__hostname] Support openSUSE and replace printf with echo
6 years ago
Dennis Camera
da1d70e16a
[__hostname] Also quote hostname in FreeBSD rc.conf
6 years ago
Dennis Camera
6e1a105c22
[__hostname] Lint
6 years ago
Dennis Camera
cbb108d61c
[__hostname] Copy FQDN-logic to gencode-remote
...
Otherwise, the code-remote gets run on the remote every time.
6 years ago
Dennis Camera
3e7cf68de5
[__hostname] Source sysconfig file instead of processing through AWK
...
This way quotes and expansions will be handled correctly.
6 years ago
Dennis Camera
74568e8a0a
[__hostname] Use FQDN as hostname on RedHat derivatives and BSDs
6 years ago
Dennis Camera
7bf203509b
[__hostname] Use __key_value exact_delimiter for shell-like files
6 years ago
Dennis Camera
77210c349e
[__hostname] Extend os switches with RedHat-derivatives (CentOS, Fedora, RedHat, Scientific)
6 years ago
Dennis Camera
d43eb5b22f
[__hostname] Add support for NetBSD
6 years ago
Dennis Camera
1bab641c94
[explorer/hostname] Do not shorten hostname in any case
6 years ago
Dennis Camera
56c654808d
[__hostname] Unify persistent hostname explorers
6 years ago
Dennis Camera
f5342e9a35
[explorer/hostname] Remove code reading persistent hostname
6 years ago
Dennis Camera
ee440ec619
[__hostname] Compress state check
6 years ago
Dennis Camera
81ba849af8
Move __hostname hostname explorer to global scope
6 years ago
Dennis Camera
abc765bd99
[__hostname/explorer/hostname] Darwin: Always fall back to hostname if scutil is missing or fails
6 years ago
Dennis Camera
2804a8bae6
[__hostname] Add support for macosx
6 years ago
Dennis Camera
3c9eb7bce7
[__hostname] Support all systemd OSes and prefer hostnamectl
6 years ago
Darko Poljak
7981f81dcd
++changelog
6 years ago
Darko Poljak
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
6 years ago
Darko Poljak
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
6 years ago
Darko Poljak
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
6 years ago
Darko Poljak
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
6 years ago
Dennis Camera
259aa13b6a
[__ssh_authorized_keys] Better path checks
6 years ago
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.
6 years ago
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.
6 years ago
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.
6 years ago
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.
6 years ago
Darko Poljak
828b4c867c
Release 6.0.0
6 years ago
Darko Poljak
50156bd7cd
shellcheck
6 years ago
Darko Poljak
9d8a0dae66
++changelog
6 years ago
Darko Poljak
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
6 years ago
Darko Poljak
9d26fbdfb8
Merge branch 'git-recursive' into 'master'
...
__git type: Add --recursive option
See merge request ungleich-public/cdist!794
6 years ago
Dennis Camera
5c8e31b2ef
[type/__git] Improve documentation of --recursive option
6 years ago
Darko Poljak
97bcfcc23c
Release preos, i.e. make it non-beta
6 years ago
Darko Poljak
b657ba8221
Fix log level when verbosity option is not specified
6 years ago
Nico Schottelius
90d9326740
[__sysctl] add alpine support
6 years ago
Ander Punnar
d147f4a86f
__apt_key: fix key dearmor when fetching from uri
6 years ago
Darko Poljak
799ec72369
Implement preos
6 years ago