cleanup some more kunsi leftovers

This commit is contained in:
Franzi 2021-12-22 07:41:50 +01:00
parent 4c55f0878d
commit 2c6073854b
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 8 additions and 16 deletions

View file

@ -1,4 +1,5 @@
timezone = node.metadata.get('timezone', 'UTC')
hostname = node.metadata.get('hostname', node.name)
actions = {
'systemd-reload': {
@ -10,8 +11,8 @@ actions = {
},
},
'systemd-hostname': {
'command': 'hostnamectl set-hostname {}'.format(node.metadata['hostname']),
'unless': '[ "$(hostnamectl --static)" = "{}" ]'.format(node.metadata['hostname']),
'command': 'hostnamectl set-hostname {}'.format(hostname),
'unless': '[ "$(hostnamectl --static)" = "{}" ]'.format(hostname),
# Provided by bundle:basic
'needs': {
'file:/etc/hosts',