b35928cf83
When creating many containers on a single contended host, the execution of many delegated tasks in parallel results in failure. This patch consolidates the container prep and networking tasks leveraging the lxc-rootfs pid path on the physical host instead of relying on delegation. Change-Id: I0823e34286a0857b539a94604dbe9cdeb8a605f0 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
18 lines
515 B
Django/Jinja
18 lines
515 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
### start generated network for [ {{ item.value.interface }} ] ###
|
|
DEVICE={{ item.value.interface }}
|
|
BOOTPROTO=none
|
|
ONBOOT=yes
|
|
NM_CONTROLLED=no
|
|
TYPE=Ethernet
|
|
{% if item.value.address is defined %}
|
|
IPADDR={{ item.value.address }}
|
|
NETMASK={{ item.value.netmask }}
|
|
{% if item.value.gateway is defined %}
|
|
GATEWAY={{ item.value.gateway }}
|
|
{% endif %}
|
|
{% endif %}
|
|
MTU={{ item.value.mtu|default(lxc_container_default_mtu) }}
|
|
DELAY=0
|
|
### end generated network for [ {{ item.value.interface }} ] ### |