forked from ungleich-public/cdist
Add support for CoreOS to __hostname type (#586)
This commit is contained in:
parent
9fed32e373
commit
5c4cda589c
2 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ has_hostnamectl=$(cat "$__object/explorer/has_hostnamectl")
|
|||
# If everything is ok -> exit
|
||||
#
|
||||
case "$os" in
|
||||
archlinux|debian|suse|ubuntu|devuan)
|
||||
archlinux|debian|suse|ubuntu|devuan|coreos)
|
||||
if [ "$name_config" = "$name_should" -a "$name_running" = "$name_should" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
@ -58,7 +58,7 @@ echo changed >> "$__messages_out"
|
|||
|
||||
# Use the good old way to set the hostname even on machines running systemd.
|
||||
case "$os" in
|
||||
archlinux|debian|ubuntu|devuan|centos)
|
||||
archlinux|debian|ubuntu|devuan|centos|coreos)
|
||||
echo "printf '%s\n' '$name_should' > /etc/hostname"
|
||||
echo "hostname -F /etc/hostname"
|
||||
;;
|
||||
|
|
|
@ -41,7 +41,7 @@ not_supported() {
|
|||
}
|
||||
|
||||
case "$os" in
|
||||
archlinux|debian|suse|ubuntu|devuan)
|
||||
archlinux|debian|suse|ubuntu|devuan|coreos)
|
||||
# handled in gencode-remote
|
||||
:
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue