cleanup some more kunsi leftovers
This commit is contained in:
parent
4c55f0878d
commit
2c6073854b
4 changed files with 8 additions and 16 deletions
|
@ -1,4 +1,8 @@
|
|||
127.0.0.1 localhost ${node.name} ${node.metadata['hostname']}
|
||||
% if node.metadata.get('hostname', None):
|
||||
127.0.0.1 localhost ${node.name} ${node.metadata.get('hostname')}
|
||||
% else:
|
||||
127.0.0.1 localhost ${node.name}
|
||||
% endif
|
||||
|
||||
::1 ip6-localhost
|
||||
fe00::0 ip6-localnet
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue