openstack-ansible-lxc_hosts/templates/lxc-openstack.conf.j2
Jean-Philippe Evrard 513244b56b Added to ability to set mtu for lxcbr0
The lxc_host role overrides the configuration
done by the system administrator on the host.

If mtu was defined in /etc/lxc/ and in the
system network interfaces, then these configurations
will be overriden.

This commit should allow the deployer to set the
mtu for its lxcbr0 network, by setting the variable
lxc_net_mtu.

Fixes-Bug: #1518303

Change-Id: I42ab3d0a2c20ae94335de195cdb14579d9f59f5f
2015-12-02 17:13:24 +01:00

17 lines
415 B
Django/Jinja

# {{ ansible_managed }}
lxc.start.auto = 1
lxc.start.delay = 15
lxc.group = onboot
lxc.group = openstack
# Default LXC network
lxc.network.type = {{ lxc_container_net_type }}
lxc.network.name = {{ lxc_container_net_name }}
lxc.network.link = {{ lxc_container_net_link }}
lxc.network.flags = up
{% if lxc_net_mtu is defined %}
lxc.network.mtu = {{ lxc_net_mtu }}
{% endif %}
lxc.network.hwaddr = 00:16:3e:xx:xx:xx