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: I68e5fd1b893bf716f6cfc08d80a36fbb07f635f7
Jimmy McCrory 6 months ago
parent
commit
8350c74fb8

+ 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/container1.yml View File

@@ -2,3 +2,4 @@
2 2
 ansible_host: 10.1.0.2
3 3
 ansible_become: True
4 4
 ansible_user: root
5
+container_name: container1

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

@@ -2,3 +2,4 @@
2 2
 ansible_host: 10.1.0.3
3 3
 ansible_become: True
4 4
 ansible_user: root
5
+container_name: container2

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

@@ -2,3 +2,4 @@
2 2
 ansible_host: 10.1.0.4
3 3
 ansible_become: True
4 4
 ansible_user: root
5
+container_name: container3

Loading…
Cancel
Save