packer-qemu/image/assets/ansible/roles/debian-init/templates/interfaces.j2

13 lines
397 B
Django/Jinja

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto {{ network_config.nic_name }}
allow-hotplug {{ network_config.nic_name }}
iface {{ network_config.nic_name }} inet dhcp