Merge pull request #3143 from jbcraig/add_os_trust_id
add support for openstack trust to cloud provider config
This commit is contained in:
commit
34019291b8
2 changed files with 13 additions and 2 deletions
|
@ -21,5 +21,12 @@
|
||||||
|
|
||||||
- name: check openstack_tenant_id value
|
- name: check openstack_tenant_id value
|
||||||
fail:
|
fail:
|
||||||
msg: "openstack_tenant_id is missing"
|
msg: "one of openstack_tenant_id or openstack_trust_id must be specified"
|
||||||
when: openstack_tenant_id is not defined or openstack_tenant_id == ""
|
when: (openstack_tenant_id is not defined or openstack_tenant_id == "") and
|
||||||
|
openstack_trust_id is not defined
|
||||||
|
|
||||||
|
- name: check openstack_trust_id value
|
||||||
|
fail:
|
||||||
|
msg: "one of openstack_tenant_id or openstack_trust_id must be specified"
|
||||||
|
when: (openstack_trust_id is not defined or openstack_trust_id == "") and
|
||||||
|
openstack_tenant_id is not defined
|
||||||
|
|
|
@ -3,7 +3,11 @@ auth-url="{{ openstack_auth_url }}"
|
||||||
username="{{ openstack_username }}"
|
username="{{ openstack_username }}"
|
||||||
password="{{ openstack_password }}"
|
password="{{ openstack_password }}"
|
||||||
region="{{ openstack_region }}"
|
region="{{ openstack_region }}"
|
||||||
|
{% if openstack_trust_id is defined and openstack_trust_id != "" %}
|
||||||
|
trust-id="{{ openstack_trust_id }}"
|
||||||
|
{% else %}
|
||||||
tenant-id="{{ openstack_tenant_id }}"
|
tenant-id="{{ openstack_tenant_id }}"
|
||||||
|
{% endif %}
|
||||||
{% if openstack_tenant_name is defined and openstack_tenant_name != "" %}
|
{% if openstack_tenant_name is defined and openstack_tenant_name != "" %}
|
||||||
tenant-name="{{ openstack_tenant_name }}"
|
tenant-name="{{ openstack_tenant_name }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue