Browse Source

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: I692d538976b7be49e35ef0f2f3d90aedd4355542
Jimmy McCrory 6 months ago
parent
commit
fe179ea9e1

+ 0
- 1
tests/group_vars/all_containers.yml View File

@@ -13,7 +13,6 @@
13 13
 # See the License for the specific language governing permissions and
14 14
 # limitations under the License.
15 15
 
16
-container_name: "{{ inventory_hostname }}"
17 16
 container_networks:
18 17
   management_address:
19 18
     address: "{{ ansible_host }}"

+ 1
- 0
tests/host_vars/infra1.yml View File

@@ -16,4 +16,5 @@
16 16
 ansible_host: 10.1.1.101
17 17
 ansible_become: True
18 18
 ansible_user: root
19
+container_name: infra1
19 20
 tunnel_address: 10.1.2.101

+ 1
- 0
tests/host_vars/openstack1.yml View File

@@ -16,5 +16,6 @@
16 16
 ansible_host: 10.1.1.102
17 17
 ansible_become: True
18 18
 ansible_user: root
19
+container_name: openstack1
19 20
 tunnel_address: 10.1.2.102
20 21
 neutron_local_ip: 10.1.2.102

Loading…
Cancel
Save