openstack-ansible-lxc_conta.../templates/suse-interface.j2

14 lines
391 B
Django/Jinja

# {{ ansible_managed }}
### start generated network for [ {{ item.value.interface }} ] ###
STARTMODE=auto
{% if item.value.address is defined %}
BOOTPROTO=static
IPADDR={{ item.value.address }}
NETMASK={{ item.value.netmask }}
{% else %}
BOOTPROTO=dhcp
{% endif %}
MTU={{ item.value.mtu|default(lxc_container_default_mtu) }}
### end generated network for [ {{ item.value.interface }} ] ###