Use tempest_domain_name var for setting domain

Currently in tasks/tempest_resources.yml file, we are using
ansible provided openstack cloud modules which needs domain
name which is harded to default.

When os_tempest role is getting used with different deployment tool,
interface varies. Adding tempest_domain_name var mades it easier
to use any domain name in clouds.yaml file.

It replaces legacy domain-id with domain.

Change-Id: I157ac565ac93fcdd4c232beacbb4e33e42b55145
This commit is contained in:
Chandan Kumar 2019-01-15 17:55:50 +05:30
parent f4d73dec30
commit 6bfad39ec7
2 changed files with 5 additions and 2 deletions

View File

@ -288,6 +288,9 @@ tempest_tempest_conf_overrides: {}
## The name of cloud from clouds.yaml
tempest_cloud_name: "default"
## The name of domain from clouds.yaml
tempest_domain_name: "default"
# 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

View File

@ -82,7 +82,7 @@
state: present
name: "{{ item }}"
description: "{{ item }} project"
domain_id: "default"
domain: "{{ tempest_domain_name }}"
interface: internal
verify: "{{ not (keystone_service_internaluri_insecure | bool) }}"
register: add_project
@ -97,7 +97,7 @@
state: present
name: "{{ item.name }}"
password: "{{ item.password | default(item.name) }}"
domain: default
domain: "{{ tempest_domain_name }}"
default_project: "{{ item.project | default(item.name) }}"
interface: internal
verify: "{{ not (keystone_service_internaluri_insecure | bool) }}"