openstack-ansible-lxc_conta.../tests/inventory
Jesse Pretorius 8e15365757 Allow extra LXC config options via group/host vars
To reduce the number of times a container is restarted during the
build process, this patch implements the facility to consume
LXC container_config items from the inventory.

This allows the 'lxc.aa_profile' option, for example, to be set
in group_vars and therefore have it applied on container creation
instead of later when the service install playbook runs.

Change-Id: I4c95a231af3306c5010b168e7cc181deecf1a58d
2016-07-19 14:49:31 +00:00

11 lines
361 B
Plaintext

[all]
localhost ansible_connection=local physical_host=localhost ansible_become=True
container1 ansible_host=10.100.100.2 ansible_become=True ansible_user=root
container2 ansible_host=10.100.100.3 ansible_become=True ansible_user=root
container3 ansible_host=10.100.100.4 ansible_become=True ansible_user=root
[all_containers]
container1
container2
container3