Set container_name as host_var in test inventory
The connection plugin no longer falls back on using the inventory_hostname as the container_name. Set container_name as a host var for each container in the test inventory. Change-Id: Iedc250945ead1ed3ad91e7e550a134fae7f9e175
This commit is contained in:
parent
0b9bbc47f4
commit
abf905a211
|
@ -14,7 +14,6 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
ansible_host: "{{ ansible_host }}"
|
ansible_host: "{{ ansible_host }}"
|
||||||
container_name: "{{ inventory_hostname }}"
|
|
||||||
container_networks:
|
container_networks:
|
||||||
management_address:
|
management_address:
|
||||||
address: "{{ ansible_host }}"
|
address: "{{ ansible_host }}"
|
||||||
|
|
|
@ -17,3 +17,4 @@
|
||||||
ansible_host: 10.1.0.5
|
ansible_host: 10.1.0.5
|
||||||
ansible_become: True
|
ansible_become: True
|
||||||
ansible_user: root
|
ansible_user: root
|
||||||
|
container_name: aodh
|
||||||
|
|
|
@ -17,3 +17,4 @@
|
||||||
ansible_host: 10.1.0.4
|
ansible_host: 10.1.0.4
|
||||||
ansible_become: True
|
ansible_become: True
|
||||||
ansible_user: root
|
ansible_user: root
|
||||||
|
container_name: gnocchi
|
||||||
|
|
|
@ -16,3 +16,4 @@
|
||||||
ansible_host: 10.1.0.2
|
ansible_host: 10.1.0.2
|
||||||
ansible_become: True
|
ansible_become: True
|
||||||
ansible_user: root
|
ansible_user: root
|
||||||
|
container_name: infra1
|
||||||
|
|
|
@ -16,3 +16,4 @@
|
||||||
ansible_host: 10.1.0.3
|
ansible_host: 10.1.0.3
|
||||||
ansible_become: True
|
ansible_become: True
|
||||||
ansible_user: root
|
ansible_user: root
|
||||||
|
container_name: openstack1
|
||||||
|
|
Loading…
Reference in New Issue