openstack-ansible-lxc_hosts/templates/lxc-net-suse-bridge.cfg.j2
Markos Chandras 09406de86b Add SUSE support
Add support for SUSE based distributions. We also update the bindep.txt,
run_tests.sh and Vagrantfile files from the openstack-ansible-tests
repository except that we use Leap 42.1 because Leap 42.2 does not work
as expected with the currently released bindep (2.3.0).

Change-Id: I5fb94a7cedf9d28816184e3eadd88e42f93295c2
2017-04-25 14:56:33 +01:00

19 lines
463 B
Django/Jinja

# {{ ansible_managed }}
DEVICE={{ lxc_net_bridge }}
BRIDGE='yes'
IPADDR={{ lxc_net_address }}
NETMASK={{ lxc_net_netmask }}
{% if lxc_net_gateway is not none %}
GATEWAY={{ lxc_net_gateway }}
{% endif %}
{% if lxc_net_mtu is defined %}
MTU={{ lxc_net_mtu }}
{% endif %}
BOOTPROTO=static
BRIDGE_STP='on'
# POST_UP script
POST_UP_SCRIPT="compat:suse:ifup-post-{{ lxc_net_bridge }}"
# POST_DOWN script
POST_DOWN_SCRIPT="compat:suse:ifdown-post-{{ lxc_net_bridge }}"