d0d9384aee
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
31 lines
973 B
Django/Jinja
31 lines
973 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
# LXC_AUTO - whether or not to start containers at boot
|
|
LXC_AUTO="true"
|
|
|
|
# BOOTGROUPS - What groups should start on bootup?
|
|
# Comma separated list of groups.
|
|
# Leading comma, trailing comma or embedded double
|
|
# comma indicates when the NULL group should be run.
|
|
# Example (default): boot the onboot group first then the NULL group
|
|
BOOTGROUPS="onboot,"
|
|
|
|
# SHUTDOWNDELAY - Wait time for a container to shut down.
|
|
# Container shutdown can result in lengthy system
|
|
# shutdown times. Even 5 seconds per container can be
|
|
# too long.
|
|
SHUTDOWNDELAY="{{ lxc_container_shutdown_delay }}"
|
|
|
|
# OPTIONS can be used for anything else.
|
|
# If you want to boot everything then
|
|
# options can be "-a" or "-a -A".
|
|
OPTIONS=
|
|
|
|
# STOPOPTS are stop options. The can be used for anything else to stop.
|
|
# If you want to kill containers fast, use -k
|
|
STOPOPTS="-a -A -s"
|
|
|
|
USE_LXC_BRIDGE="false" # overridden in lxc-net
|
|
|
|
[ ! -f /etc/default/lxc-net ] || . /etc/default/lxc-net
|