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: I1a41a2953f0274953c7695246d700ad96dbaf0d3
Jimmy McCrory 7 months ago
parent
commit
3022704d39
3 changed files with 2 additions and 1 deletions
  1. 0
    1
      tests/group_vars/all_containers.yml
  2. 1
    0
      tests/host_vars/infra1.yml
  3. 1
    0
      tests/host_vars/tacker1.yml

+ 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/tacker1.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: tacker1

Loading…
Cancel
Save