openstack-ansible-lxc_hosts/templates/lxc-net.default.j2
Justin Alford d0d9384aee Increase LXC container default shutdown delay
Increase container shutdown delay before force-killing to avoid db
corruption after controller reboots
Parameterize SHUTDOWNDELAY envvar as lxc_container_shutdown_delay
with default value 60 seconds
Rename lxc.default.j2 template to lxc-net.default.j2 to align with
destination config file name lxc-net
Add new lxc.default.j2 template to use the lxc_container_shutdown_delay
variable and allow user-defined value

Related-Bug: 1806696

Change-Id: I1d3b7990e462140fdb402883f8d25422eafca66b
2019-01-16 12:42:36 -07:00

13 lines
396 B
Django/Jinja

# {{ ansible_managed }}
USE_LXC_BRIDGE="true"
LXC_BRIDGE="{{ lxc_net_bridge }}"
LXC_ADDR="{{ lxc_net_address }}"
LXC_NETMASK="{{ lxc_net_netmask }}"
LXC_NETWORK="${LXC_ADDR}/${LXC_NETMASK}"
LXC_DHCP_RANGE="{{ lxc_net_dhcp_range }}"
LXC_DHCP_MAX="{{ lxc_net_dhcp_max }}"
LXC_DNSMASQ_USER="{{ lxc_net_dnsmasq_user }}"
LXC_DHCP_CONFILE="{{ lxc_net_dhcp_config }}"
LXC_DOMAIN="{{ lxc_net_domain }}"