openstack-ansible-lxc_hosts/templates/lxc-net-redhat-bridge.cfg.j2
Major Hayden a468089727
Allow NetworkManager to work (if present)
This patch adds tasks that check to see if NetworkManager is
installed and running. If it is, the tasks allow NetworkManager
to handle the `lxcbr0` interface.

In addition, the `NetworkManager-wait-online.service` will be
enabled to ensure that all services that depend on networking will
wait for network configuration to be completed.

Partial-Bug: 1738467
Change-Id: I415241daccf22f03826062eea18b3b36b2d9e53e
2018-01-08 09:22:51 -06:00

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