bifrost/playbooks/roles/bifrost-configdrives-dynamic/templates/interfaces.j2
Julia Kreger 0b82a03408 Addition of dynamic configuration drives
Adding a modified role, and base testing playbook updates, to allow
for dynamic generation of configuration drives utilizing the dynamic
inventory.

Change-Id: Ibe4a5761da828a39066d99c75b724af5ff670239
2015-06-10 19:18:15 +00:00

17 lines
501 B
Django/Jinja

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto {{ node_default_network_interface }}
iface {{ node_default_network_interface }} inet static
{% if addressing_mode is defined and "dhcp" in addressing_mode %}
iface {{ node_default_network_interface }} inet dhcp
{% else %}
iface {{ node_default_network_interface }} inet static
address {{ ipv4_address }}
netmask {{ ipv4_subnet_mask }}
gateway {{ ipv4_gateway }}
dns-nameservers {{ ipv4_nameserver }}
{% endif %}