Fix a few more extraneous splits
Just use this_node if applicable, or the raw node.hostname.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
iface ipmi inet manual
|
||||
pre-up ipmitool lan set 1 ipsrc static
|
||||
pre-up ipmitool lan set 1 ipaddr {{ ipmi['hosts'][inventory_hostname.split('.')[0]]['address'] }}
|
||||
pre-up ipmitool lan set 1 netmask {{ ipmi['hosts'][inventory_hostname.split('.')[0]]['netmask'] }}
|
||||
pre-up ipmitool lan set 1 defgw ipaddr {{ ipmi['hosts'][inventory_hostname.split('.')[0]]['gateway'] }}
|
||||
pre-up ipmitool lan set 1 ipaddr {{ ipmi['hosts'][this_node]['address'] }}
|
||||
pre-up ipmitool lan set 1 netmask {{ ipmi['hosts'][this_node]['netmask'] }}
|
||||
pre-up ipmitool lan set 1 defgw ipaddr {{ ipmi['hosts'][this_node]['gateway'] }}
|
||||
|
Reference in New Issue
Block a user