
The OS_IDENTITY_API_VERSION need to be set to 2.0 instead of 2 when using the Keystone Identity API version 2. Other settings are currently not affected Change-Id: I574bf1c1e908833b139a14b1f402df8db837344b Closes-Bug: #1506231
43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
# {{ ansible_managed }}
|
|
export LC_ALL=C
|
|
|
|
# COMMON CINDER ENVS
|
|
export CINDER_ENDPOINT_TYPE={{ openrc_cinder_endpoint_type }}
|
|
|
|
# COMMON NOVA ENVS
|
|
export NOVA_ENDPOINT_TYPE={{ openrc_nova_endpoint_type }}
|
|
|
|
# COMMON OPENSTACK ENVS
|
|
export OS_ENDPOINT_TYPE={{ openrc_os_endpoint_type }}
|
|
export OS_USERNAME={{ openrc_os_username }}
|
|
export OS_PASSWORD={{ openrc_os_password }}
|
|
export OS_PROJECT_NAME={{ openrc_os_tenant_name }}
|
|
# NOTE(sigmavirus24): The tenant name setting should be removed when
|
|
# python-cinderclient stops checking for it and failing if it doesn't exist.
|
|
export OS_TENANT_NAME={{ openrc_os_tenant_name }}
|
|
export OS_AUTH_URL={{ openrc_os_auth_url }}
|
|
export OS_NO_CACHE=1
|
|
export OS_USER_DOMAIN_NAME={{ openrc_os_domain_name }}
|
|
export OS_PROJECT_DOMAIN_NAME={{ openrc_os_domain_name }}
|
|
|
|
# For openstackclient
|
|
{% if openrc_os_auth_url.endswith('v3') %}
|
|
export OS_IDENTITY_API_VERSION=3
|
|
export OS_AUTH_VERSION=3
|
|
{% else %}
|
|
export OS_IDENTITY_API_VERSION=2.0
|
|
export OS_AUTH_VERSION=2
|
|
{% endif %}
|
|
|
|
{% if openrc_insecure | bool %}
|
|
# Convenience Aliases for Self-Signed Certs
|
|
alias cinder='cinder --insecure'
|
|
alias glance='glance --insecure'
|
|
alias heat='heat --insecure'
|
|
alias keystone='keystone --insecure'
|
|
alias neutron='neutron --insecure'
|
|
alias nova='nova --insecure'
|
|
alias openstack='openstack --insecure'
|
|
alias swift='swift --insecure'
|
|
{% endif %}
|