blob: 2376335be6b639c3eacc2c616e1411b79191934b [file] [log] [blame]
Zack Williamsba5549c2017-03-25 15:04:45 -07001{% for node in physical_node_list if node.name == ansible_hostname %}
2auto {{ node.interface | default(mgmt_interface) }}
3
4iface {{ node.interface | default(mgmt_interface) }} inet static
5 address {{ mgmt_ipv4_first_octets }}.{{ node.ipv4_last_octet }}
6 network {{ mgmt_ipv4_first_octets }}.0
7 netmask 255.255.255.0
8 broadcast {{ mgmt_ipv4_first_octets }}.255
9{% if node.gateway_enabled is defined and node.gateway_enabled %}
10 gateway {{ mgmt_ipv4_first_octets }}.1
11{% endif %}
12{% endfor %}