Merge pull request #2600 from maximegaillard/master
Add Openstack tenant name
This commit is contained in:
commit
d73d60c9b0
2 changed files with 4 additions and 0 deletions
|
@ -104,6 +104,7 @@ openstack_username: "{{ lookup('env','OS_USERNAME') }}"
|
||||||
openstack_password: "{{ lookup('env','OS_PASSWORD') }}"
|
openstack_password: "{{ lookup('env','OS_PASSWORD') }}"
|
||||||
openstack_region: "{{ lookup('env','OS_REGION_NAME') }}"
|
openstack_region: "{{ lookup('env','OS_REGION_NAME') }}"
|
||||||
openstack_tenant_id: "{{ lookup('env','OS_TENANT_ID')| default(lookup('env','OS_PROJECT_ID')|default(lookup('env','OS_PROJECT_NAME'),true)) }}"
|
openstack_tenant_id: "{{ lookup('env','OS_TENANT_ID')| default(lookup('env','OS_PROJECT_ID')|default(lookup('env','OS_PROJECT_NAME'),true)) }}"
|
||||||
|
openstack_tenant_name: "{{ lookup('env','OS_TENANT_NAME') }}"
|
||||||
openstack_domain_name: "{{ lookup('env','OS_USER_DOMAIN_NAME') }}"
|
openstack_domain_name: "{{ lookup('env','OS_USER_DOMAIN_NAME') }}"
|
||||||
openstack_domain_id: "{{ lookup('env','OS_USER_DOMAIN_ID') }}"
|
openstack_domain_id: "{{ lookup('env','OS_USER_DOMAIN_ID') }}"
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,9 @@ username="{{ openstack_username }}"
|
||||||
password="{{ openstack_password }}"
|
password="{{ openstack_password }}"
|
||||||
region="{{ openstack_region }}"
|
region="{{ openstack_region }}"
|
||||||
tenant-id="{{ openstack_tenant_id }}"
|
tenant-id="{{ openstack_tenant_id }}"
|
||||||
|
{% if openstack_tenant_name is defined and openstack_tenant_name != "" %}
|
||||||
|
tenant-name="{{ openstack_tenant_name }}"
|
||||||
|
{% endif %}
|
||||||
{% if openstack_domain_name is defined and openstack_domain_name != "" %}
|
{% if openstack_domain_name is defined and openstack_domain_name != "" %}
|
||||||
domain-name="{{ openstack_domain_name }}"
|
domain-name="{{ openstack_domain_name }}"
|
||||||
{% elif openstack_domain_id is defined and openstack_domain_id != "" %}
|
{% elif openstack_domain_id is defined and openstack_domain_id != "" %}
|
||||||
|
|
Loading…
Reference in a new issue