openstack-ansible-os_keystone/tests/inventory
Jimmy McCrory 994bb0f40c Fix keystone tests
Update test-prepare-containers.yml to use the default, inventory
defined, remote connections for hosts so that tasks intended for
containers run as expected.

I0351dddc49da5908f46e09e22467f6fb112593dd recently merged in keystone
causing the service to exit when fernet keys do not exist and this
role's functional testing to fail.

The 'Distribute the fernet key repository' task uses the
'ansible_ssh_host' variable from members of the 'keystone_all[1:]'
group. Since 'ansible_ssh_host' is set through group_vars based on the
current working host's 'ansible_host', it's not looked up correctly
within loops and fernet keys are only being synced within the same host.

Move 'ansible_ssh_host' from being dynamically assigned in group_vars to
being statically assigned within the inventory.

Change-Id: I177fadb728206285996f7ffb9d522db8ec63114b
2016-05-19 18:42:15 -07:00

25 lines
543 B
Plaintext

[all]
localhost ansible_connection=local ansible_become=True
infra1 ansible_ssh_host=10.100.100.2 ansible_host=10.100.100.2 ansible_become=True ansible_user=root
keystone1 ansible_ssh_host=10.100.100.3 ansible_host=10.100.100.3 ansible_become=True ansible_user=root
keystone2 ansible_ssh_host=10.100.100.4 ansible_host=10.100.100.4 ansible_become=True ansible_user=root
[all_containers]
infra1
keystone1
keystone2
[rabbitmq_all]
infra1
[galera_all]
infra1
[service_all:children]
rabbitmq_all
galera_all
[keystone_all]
keystone1
keystone2