Zack Williams | ba5549c | 2017-03-25 15:04:45 -0700 | [diff] [blame] | 1 | {% for node in physical_node_list if node.name == ansible_hostname %} |
| 2 | auto {{ node.interface | default(mgmt_interface) }} |
| 3 | |
| 4 | iface {{ 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 %} |