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: I405b64b8067e43309257d50a5c2acc915c789d24
This commit is contained in:
Jimmy McCrory 2018-10-20 15:28:29 -07:00
parent a1fb95b2fa
commit 26fdbcd102
5 changed files with 4 additions and 3 deletions

View File

@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
container_name: "{{ inventory_hostname }}"
physical_host: localhost physical_host: localhost
properties: properties:
service_name: "{{ inventory_hostname }}" service_name: "{{ inventory_hostname }}"

View File

@ -16,6 +16,7 @@
ansible_host: 10.1.1.101 ansible_host: 10.1.1.101
ansible_become: True ansible_become: True
ansible_user: root ansible_user: root
container_name: infra1
container_networks: container_networks:
management_address: management_address:
address: "{{ ansible_host }}" address: "{{ ansible_host }}"

View File

@ -17,7 +17,7 @@ ansible_host: 10.1.1.104
ansible_become: True ansible_become: True
ansible_user: root ansible_user: root
ipmi_address: 10.1.4.104 ipmi_address: 10.1.4.104
container_name: "{{ inventory_hostname }}" container_name: ironic1
container_networks: container_networks:
management_address: management_address:
address: "{{ ansible_host }}" address: "{{ ansible_host }}"

View File

@ -19,7 +19,7 @@ ansible_user: root
tunnel_address: 10.1.2.102 tunnel_address: 10.1.2.102
neutron_local_ip: 10.1.2.102 neutron_local_ip: 10.1.2.102
storage_address: 10.1.5.102 storage_address: 10.1.5.102
container_name: "{{ inventory_hostname }}" container_name: openstack1
container_networks: container_networks:
management_address: management_address:
address: "{{ ansible_host }}" address: "{{ ansible_host }}"

View File

@ -17,6 +17,7 @@ ansible_host: 10.1.1.103
storage_address: 10.1.5.103 storage_address: 10.1.5.103
ansible_user: root ansible_user: root
ansible_become: True ansible_become: True
container_name: swift-storage1
container_networks: container_networks:
management_address: management_address:
address: "{{ ansible_host }}" address: "{{ ansible_host }}"