openstack-ansible-os_cinder/tests/inventory
Jesse Pretorius 2fe8f7e09e Switch storage to use different inventory_hostname
Our role tests execute as non-root users, and the roles
need to access the environment variables for that non-root
user. Ansible, when targeting localhost, changes to
'connection: local' and thus breaks everything we need
to do against localhost as root unless we use 'become: true',
but we if generally use that against remote hosts we lose
the environment variables for the non-root user.

As such, we switch the inventory to target 'compute1' instead,
which has the address '10.1.1.1' (br-mgmt), so that we do not
have to deal with the implict connection type changes implemented
by Ansible.

Depends-On: https://review.openstack.org/584033
Change-Id: I738e4ca31cd4d465d7e7eee3de052a40f7b1596a
2018-07-19 19:13:17 +01:00

56 lines
500 B
Plaintext

[all]
localhost
infra1
keystone
cinder
storage1
[all_containers]
infra1
keystone
cinder
[oslomsg_rpc_all]
infra1
[oslomsg_notify_all]
infra1
[rabbitmq_all]
infra1
[galera_all]
infra1
[memcached_all]
infra1
[service_all:children]
rabbitmq_all
galera_all
memcached_all
[keystone_all]
keystone
[utility_all]
keystone
[cinder_api]
cinder
[cinder_scheduler]
cinder
[cinder_backup]
cinder
[cinder_volume]
storage1
[cinder_all:children]
cinder_api
cinder_scheduler
cinder_backup
cinder_volume