<%
conf = node['lxcs']['lxc']['env']['lxc-net']
-%>
# This file is auto-generated by lxc.postinst if it does not
# exist.  Customizations will not be overridden.
# Leave USE_LXC_BRIDGE as "true" if you want to use lxcbr0 for your
# containers.  Set to "false" if you'll use virbr0 or another existing
# bridge, or mavlan to your host's NIC.
USE_LXC_BRIDGE="<%= conf['USE_LXC_BRIDGE'] %>"

# If you change the LXC_BRIDGE to something other than lxcbr0, then
# you will also need to update your /etc/lxc/default.conf as well as the
# configuration (/var/lib/lxc/<container>/config) for any containers
# already created using the default config to reflect the new bridge
# name.
# If you have the dnsmasq daemon installed, you'll also have to update
# /etc/dnsmasq.d/lxc and restart the system wide dnsmasq daemon.
LXC_BRIDGE="<%= conf['LXC_BRIDGE'] %>"
LXC_ADDR="<%= conf['LXC_ADDR'] %>"
LXC_NETMASK="<%= conf['LXC_NETMASK'] %>"
LXC_NETWORK="<%= conf['LXC_NETWORK'] %>"
LXC_DHCP_RANGE="<%= conf['LXC_DHCP_RANGE'] %>"
LXC_DHCP_MAX="<%= conf['LXC_DHCP_MAX'] %>"
# Uncomment the next line if you'd like to use a conf-file for the lxcbr0
# dnsmasq.  For instance, you can use 'dhcp-host=mail1,10.0.3.100' to have
# container 'mail1' always get ip address 10.0.3.100.
#LXC_DHCP_CONFILE=/etc/lxc/dnsmasq.conf

# Uncomment the next line if you want lxcbr0's dnsmasq to resolve the .lxc
# domain.  You can then add "server=/lxc/10.0.3.1' (or your actual $LXC_ADDR)
# to your system dnsmasq configuration file (normally /etc/dnsmasq.conf,
# or /etc/NetworkManager/dnsmasq.d/lxc.conf on systems that use NetworkManager).
# Once these changes are made, restart the lxc-net and network-manager services.
# 'container1.lxc' will then resolve on your host.
#LXC_DOMAIN="lxc"
<%
conf.each {|key, value|
  unless @predefined_env_vars.include?(key)
-%>
<%= key %>="<%= value %>"
<%
  end
}
-%>