pvc-ansible/roles/base/templates/etc/network/interfaces.d/ipmi.j2

6 lines
337 B
Plaintext
Raw Normal View History

iface ipmi inet manual
pre-up ipmitool lan set 1 ipsrc static
2021-06-06 00:53:14 -04:00
pre-up ipmitool lan set 1 ipaddr {{ ipmi['hosts'][inventory_hostname]['address'] }}
pre-up ipmitool lan set 1 netmask {{ ipmi['hosts'][inventory_hostname]['netmask'] }}
pre-up ipmitool lan set 1 defgw ipaddr {{ ipmi['hosts'][inventory_hostname]['gateway'] }}