openstack-ansible-lxc_hosts/templates/lxc-net-redhat-bridge.cfg.j2

15 lines
318 B
Django/Jinja

# {{ ansible_managed }}
DEVICE={{ lxc_net_bridge }}
TYPE=Bridge
IPADDR={{ lxc_net_address }}
NETMASK={{ lxc_net_netmask }}
{% if lxc_net_gateway is not none %}
GATEWAY={{ lxc_net_gateway }}
{% endif %}
ONBOOT=yes
BOOTPROTO=none
NM_CONTROLLED={{ (networkmanager_check.rc == 0) | ternary('yes', 'no') }}
DELAY=0
STP=no