<%
conf = node['lxcs']['lxc']['env']['lxc']
-%>
# LXC_AUTO - whether or not to start containers at boot
LXC_AUTO="<%= conf['LXC_AUTO'] %>"

# 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="<%= conf['BOOTGROUPS'] %>"

# 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=<%= conf['SHUTDOWNDELAY'] %>

# OPTIONS can be used for anything else.
#	If you want to boot everything then
#	options can be "-a" or "-a -A".
OPTIONS="<%= conf['OPTIONS'] %>"

# STOPOPTS are stop options.  The can be used for anything else to stop.
#	If you want to kill containers fast, use -k
STOPOPTS="<%= conf['STOPOPTS'] %>"

USE_LXC_BRIDGE="<%= conf['USE_LXC_BRIDGE'] %>"  # overridden in lxc-net

[ ! -f /etc/default/lxc-net ] || . /etc/default/lxc-net
<%
conf.each {|key, value|
  unless @predefined_env_vars.include?(key)
-%>
<%= key %>="<%= value %>"
<%
  end
}
-%>