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

6 lines
522 B
Django/Jinja

iface ipmi inet manual
pre-up ipmitool lan set {{ ipmi['hosts'][this_node]['channel']|default("1") }} ipsrc static
pre-up ipmitool lan set {{ ipmi['hosts'][this_node]['channel']|default("1") }} ipaddr {{ ipmi['hosts'][this_node]['address'] }}
pre-up ipmitool lan set {{ ipmi['hosts'][this_node]['channel']|default("1") }} netmask {{ ipmi['hosts'][this_node]['netmask'] }}
pre-up ipmitool lan set {{ ipmi['hosts'][this_node]['channel']|default("1") }} defgw ipaddr {{ ipmi['hosts'][this_node]['gateway'] }}