openstack-ansible-plugins/tests/inventory
Logan V b819a87394 Add container-aware connection plugin tests
- Test the container awareness of the connection plugin (the lxc-attach
  execution functionality when container_name is set on a host).

- Test delegation to containers

Depends-On: Idb186a061a396713a0e449d47ec262b30d5006ca
Change-Id: I2331d5d5c9cf3d4f8fc83639f6047092232f5887
2017-09-14 04:56:57 +00:00

21 lines
460 B
Plaintext

[hosts]
localhost
[all_containers]
container1
container2
# This is used to test I75f9d0f55ecd875caa1bf608a77c92f950b679a1
[hosts]
localhost_alt ansible_host=localhost
[all_containers]
container3 physical_host=localhost_alt
# This is meant to test If594914df53efacc6d5bba148f4f46280f5a117d
[fake_hosts]
fakehost ansible_host=1.1.1.1
[hosts:children]
fake_hosts
[fake_containers]
fakecontainer container_name="{{ inventory_hostname }}" physical_host=fakehost