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: I5f7b222d92765dc7aaac8dfc83b4c05e160a3126
Jimmy McCrory 6 months ago
parent
commit
15417480bf

+ 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,3 +16,4 @@
16 16
 ansible_host: 10.1.0.2
17 17
 ansible_become: True
18 18
 ansible_user: root
19
+container_name: infra1

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

@@ -16,3 +16,4 @@
16 16
 ansible_host: 10.1.0.3
17 17
 ansible_become: True
18 18
 ansible_user: root
19
+container_name: openstack1

Loading…
Cancel
Save