Merge "Add tempest_interface_name var for setting interface"
This commit is contained in:
commit
1d21755f7f
@ -294,6 +294,9 @@ tempest_cloud_name: "default"
|
||||
## The name of domain from clouds.yaml
|
||||
tempest_domain_name: "default"
|
||||
|
||||
## The name of interface from clouds.yaml
|
||||
tempest_interface_name: "internal"
|
||||
|
||||
# python-tempestconf variables
|
||||
# The tempest_use_tempestconf by default is set to false, set to true if you
|
||||
# want to generate the tempest.conf file with this tool, instead of
|
||||
|
@ -53,7 +53,7 @@
|
||||
- name: Upload tempest images to glance
|
||||
os_image:
|
||||
cloud: "{{ tempest_cloud_name }}"
|
||||
interface: internal
|
||||
interface: "{{ tempest_interface_name }}"
|
||||
validate_certs: "{{ not (keystone_service_internaluri_insecure | bool) }}"
|
||||
name: "{{ item.name | default(item.url | basename) }}"
|
||||
filename: "{{ tempest_image_dir }}/{{ item.url | basename }}"
|
||||
@ -83,7 +83,7 @@
|
||||
name: "{{ item }}"
|
||||
description: "{{ item }} project"
|
||||
domain: "{{ tempest_domain_name }}"
|
||||
interface: internal
|
||||
interface: "{{ tempest_interface_name }}"
|
||||
verify: "{{ not (keystone_service_internaluri_insecure | bool) }}"
|
||||
register: add_project
|
||||
until: add_project is success
|
||||
@ -99,7 +99,7 @@
|
||||
password: "{{ item.password | default(item.name) }}"
|
||||
domain: "{{ tempest_domain_name }}"
|
||||
default_project: "{{ item.project | default(item.name) }}"
|
||||
interface: internal
|
||||
interface: "{{ tempest_interface_name }}"
|
||||
verify: "{{ not (keystone_service_internaluri_insecure | bool) }}"
|
||||
register: add_user
|
||||
until: add_user is success
|
||||
@ -111,7 +111,7 @@
|
||||
- name: Add tempest roles
|
||||
os_keystone_role:
|
||||
cloud: "{{ tempest_cloud_name }}"
|
||||
interface: internal
|
||||
interface: "{{ tempest_interface_name }}"
|
||||
validate_certs: "{{ not (keystone_service_internaluri_insecure | bool) }}"
|
||||
name: "{{ item }}"
|
||||
register: add_role
|
||||
@ -127,7 +127,7 @@
|
||||
user: "{{ item.name }}"
|
||||
role: "heat_stack_owner"
|
||||
project: "{{ item.project | default(item.name) }}"
|
||||
interface: internal
|
||||
interface: "{{ tempest_interface_name }}"
|
||||
verify: "{{ not (keystone_service_internaluri_insecure | bool) }}"
|
||||
register: add_user_role
|
||||
until: add_user_role is success
|
||||
@ -144,7 +144,7 @@
|
||||
- name: Ensure private network exists
|
||||
os_network:
|
||||
cloud: "{{ tempest_cloud_name }}"
|
||||
endpoint_type: internal
|
||||
interface: "{{ tempest_interface_name }}"
|
||||
validate_certs: "{{ keystone_service_internaluri_insecure | ternary(false, true) }}"
|
||||
name: "{{ tempest_private_net_name }}"
|
||||
provider_network_type: "{{ tempest_private_net_provider_type }}"
|
||||
@ -166,7 +166,7 @@
|
||||
- name: Ensure public network exists
|
||||
os_network:
|
||||
cloud: "{{ tempest_cloud_name }}"
|
||||
endpoint_type: internal
|
||||
interface: "{{ tempest_interface_name }}"
|
||||
validate_certs: "{{ keystone_service_internaluri_insecure | ternary(false, true) }}"
|
||||
name: "{{ tempest_public_net_name }}"
|
||||
provider_network_type: "{{ tempest_public_net_provider_type }}"
|
||||
@ -188,7 +188,7 @@
|
||||
- name: Ensure private subnet exists
|
||||
os_subnet:
|
||||
cloud: "{{ tempest_cloud_name }}"
|
||||
endpoint_type: internal
|
||||
interface: "{{ tempest_interface_name }}"
|
||||
validate_certs: "{{ keystone_service_internaluri_insecure | ternary(false, true) }}"
|
||||
network_name: "{{ tempest_private_net_name }}"
|
||||
name: "{{ tempest_private_subnet_name }}"
|
||||
@ -204,7 +204,7 @@
|
||||
- name: Ensure public subnet exists
|
||||
os_subnet:
|
||||
cloud: "{{ tempest_cloud_name }}"
|
||||
endpoint_type: internal
|
||||
interface: "{{ tempest_interface_name }}"
|
||||
validate_certs: "{{ keystone_service_internaluri_insecure | ternary(false, true) }}"
|
||||
network_name: "{{ tempest_public_net_name }}"
|
||||
name: "{{ tempest_public_subnet_name }}"
|
||||
@ -222,7 +222,7 @@
|
||||
- name: Create router
|
||||
os_router:
|
||||
cloud: "{{ tempest_cloud_name }}"
|
||||
endpoint_type: internal
|
||||
interface: "{{ tempest_interface_name }}"
|
||||
validate_certs: "{{ keystone_service_internaluri_insecure | ternary(false, true) }}"
|
||||
name: router
|
||||
network: "{{ tempest_public_net_name }}"
|
||||
@ -239,7 +239,7 @@
|
||||
- name: Create tempest flavors
|
||||
os_nova_flavor:
|
||||
cloud: "{{ tempest_cloud_name }}"
|
||||
endpoint_type: internal
|
||||
interface: "{{ tempest_interface_name }}"
|
||||
validate_certs: "{{ keystone_service_internaluri_insecure | ternary(false, true) }}"
|
||||
name: "{{ item.name }}"
|
||||
flavorid: "{{ item.id }}"
|
||||
@ -258,7 +258,7 @@
|
||||
os_project_facts:
|
||||
cloud: "{{ tempest_cloud_name }}"
|
||||
name: admin
|
||||
interface: internal
|
||||
interface: "{{ tempest_interface_name }}"
|
||||
validate_certs: "{{ not (keystone_service_internaluri_insecure | bool) }}"
|
||||
register: _get_admin_project
|
||||
until: _get_admin_project is success
|
||||
|
Loading…
Reference in New Issue
Block a user