bifrost/playbooks/roles/bifrost-configdrives-dynamic/templates/interfaces.j2
Julia Kreger 5bd90bab01 Correct ipv4 networking config issue in dynamic path
A syntax error in a template file coupled with the incorect
ipv4_gateway being set when testing resulted in Cirros being
unable to get a working network interface online.

This corrects the template and addresses the ipv4_gateway default
when using the test playbook.

Change-Id: I7155de8ec9a4123e16a9f9925a66ee12adfc9c28
2015-06-24 20:12:43 +00:00

15 lines
445 B
Django/Jinja

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto {{ node_default_network_interface }}
{% 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 %}