Merge "Use tempest_cloud_name for setting cloudname"

This commit is contained in:
Zuul 2019-01-07 18:36:44 +00:00 committed by Gerrit Code Review
commit dc89adb173
2 changed files with 15 additions and 12 deletions

View File

@ -271,6 +271,9 @@ tempest_role_project_group: utility_all
## Tunable overrides ## Tunable overrides
tempest_tempest_conf_overrides: {} tempest_tempest_conf_overrides: {}
## The name of cloud from clouds.yaml
tempest_cloud_name: "default"
# python-tempestconf variables # python-tempestconf variables
# The tempest_use_tempestconf by default is set to false, set to true if you # 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 # want to generate the tempest.conf file with this tool, instead of

View File

@ -56,7 +56,7 @@
- name: Upload tempest images to glance - name: Upload tempest images to glance
os_image: os_image:
cloud: default cloud: "{{ tempest_cloud_name }}"
interface: internal interface: internal
validate_certs: "{{ not (keystone_service_internaluri_insecure | bool) }}" validate_certs: "{{ not (keystone_service_internaluri_insecure | bool) }}"
name: "{{ item.name | default(item.url | basename) }}" name: "{{ item.name | default(item.url | basename) }}"
@ -82,7 +82,7 @@
- name: Add tempest projects - name: Add tempest projects
os_project: os_project:
cloud: default cloud: "{{ tempest_cloud_name }}"
state: present state: present
name: "{{ item }}" name: "{{ item }}"
description: "{{ item }} project" description: "{{ item }} project"
@ -97,7 +97,7 @@
- name: Add tempest users - name: Add tempest users
os_user: os_user:
cloud: default cloud: "{{ tempest_cloud_name }}"
state: present state: present
name: "{{ item.name }}" name: "{{ item.name }}"
password: "{{ item.password | default(item.name) }}" password: "{{ item.password | default(item.name) }}"
@ -114,7 +114,7 @@
- name: Add tempest roles - name: Add tempest roles
os_keystone_role: os_keystone_role:
cloud: default cloud: "{{ tempest_cloud_name }}"
interface: internal interface: internal
validate_certs: "{{ not (keystone_service_internaluri_insecure | bool) }}" validate_certs: "{{ not (keystone_service_internaluri_insecure | bool) }}"
name: "{{ item }}" name: "{{ item }}"
@ -126,7 +126,7 @@
- name: Add tempest users to heat_stack_owner role - name: Add tempest users to heat_stack_owner role
os_user_role: os_user_role:
cloud: default cloud: "{{ tempest_cloud_name }}"
state: present state: present
user: "{{ item.name }}" user: "{{ item.name }}"
role: "heat_stack_owner" role: "heat_stack_owner"
@ -147,7 +147,7 @@
- name: Ensure private network exists - name: Ensure private network exists
os_network: os_network:
cloud: default cloud: "{{ tempest_cloud_name }}"
endpoint_type: internal endpoint_type: internal
validate_certs: "{{ keystone_service_internaluri_insecure | ternary(false, true) }}" validate_certs: "{{ keystone_service_internaluri_insecure | ternary(false, true) }}"
name: "{{ tempest_private_net_name }}" name: "{{ tempest_private_net_name }}"
@ -169,7 +169,7 @@
- name: Ensure public network exists - name: Ensure public network exists
os_network: os_network:
cloud: default cloud: "{{ tempest_cloud_name }}"
endpoint_type: internal endpoint_type: internal
validate_certs: "{{ keystone_service_internaluri_insecure | ternary(false, true) }}" validate_certs: "{{ keystone_service_internaluri_insecure | ternary(false, true) }}"
name: "{{ tempest_public_net_name }}" name: "{{ tempest_public_net_name }}"
@ -191,7 +191,7 @@
- name: Ensure private subnet exists - name: Ensure private subnet exists
os_subnet: os_subnet:
cloud: default cloud: "{{ tempest_cloud_name }}"
endpoint_type: internal endpoint_type: internal
validate_certs: "{{ keystone_service_internaluri_insecure | ternary(false, true) }}" validate_certs: "{{ keystone_service_internaluri_insecure | ternary(false, true) }}"
network_name: "{{ tempest_private_net_name }}" network_name: "{{ tempest_private_net_name }}"
@ -207,7 +207,7 @@
- name: Ensure public subnet exists - name: Ensure public subnet exists
os_subnet: os_subnet:
cloud: default cloud: "{{ tempest_cloud_name }}"
endpoint_type: internal endpoint_type: internal
validate_certs: "{{ keystone_service_internaluri_insecure | ternary(false, true) }}" validate_certs: "{{ keystone_service_internaluri_insecure | ternary(false, true) }}"
network_name: "{{ tempest_public_net_name }}" network_name: "{{ tempest_public_net_name }}"
@ -225,7 +225,7 @@
- name: Create router - name: Create router
os_router: os_router:
cloud: default cloud: "{{ tempest_cloud_name }}"
endpoint_type: internal endpoint_type: internal
validate_certs: "{{ keystone_service_internaluri_insecure | ternary(false, true) }}" validate_certs: "{{ keystone_service_internaluri_insecure | ternary(false, true) }}"
name: router name: router
@ -242,7 +242,7 @@
- name: Create tempest flavors - name: Create tempest flavors
os_nova_flavor: os_nova_flavor:
cloud: default cloud: "{{ tempest_cloud_name }}"
endpoint_type: internal endpoint_type: internal
validate_certs: "{{ keystone_service_internaluri_insecure | ternary(false, true) }}" validate_certs: "{{ keystone_service_internaluri_insecure | ternary(false, true) }}"
name: "{{ item.name }}" name: "{{ item.name }}"
@ -260,7 +260,7 @@
- name: Get the admin user project id - name: Get the admin user project id
os_project_facts: os_project_facts:
cloud: default cloud: "{{ tempest_cloud_name }}"
name: admin name: admin
interface: internal interface: internal
validate_certs: "{{ not (keystone_service_internaluri_insecure | bool) }}" validate_certs: "{{ not (keystone_service_internaluri_insecure | bool) }}"