openstack-ansible-openstack.../templates/openrc-system-scope.j2
siavashsardari fdc640ddcb Adding support of system scoped openrc and clouds.yaml
Change-Id: Iff5a0892d812601c0fa3fd549b7f00a468cfdd97
Closes-Bug: 1903656
2020-11-17 11:22:47 +03:30

49 lines
1.4 KiB
Django/Jinja

# {{ ansible_managed }}
export LC_ALL={{ openrc_locale }}
# COMMON CINDER ENVS
export CINDER_ENDPOINT_TYPE={{ openrc_cinder_endpoint_type }}
# COMMON NOVA ENVS
export NOVA_ENDPOINT_TYPE={{ openrc_nova_endpoint_type }}
# COMMON MANILA ENVS
export OS_MANILA_ENDPOINT_TYPE={{ openrc_manila_endpoint_type }}
# COMMON OPENSTACK ENVS
export OS_ENDPOINT_TYPE={{ openrc_os_endpoint_type }}
export OS_INTERFACE={{ openrc_os_endpoint_type }}
export OS_USERNAME={{ openrc_os_username }}
export OS_PASSWORD='{{ openrc_os_password }}'
export OS_AUTH_TYPE={{ openrc_os_auth_type }}
export OS_AUTH_URL={{ openrc_os_auth_url }}
export OS_NO_CACHE=1
export OS_USER_DOMAIN_NAME={{ openrc_os_domain_name }}
export OS_REGION_NAME={{ openrc_region_name }}
export OS_SYSTEM_SCOPE=all
# For openstackclient
{% if openrc_os_auth_url.endswith('v2.0') %}
export OS_IDENTITY_API_VERSION=2.0
export OS_AUTH_VERSION=2
{% else %}
export OS_IDENTITY_API_VERSION=3
export OS_AUTH_VERSION=3
{% endif %}
{% if openrc_insecure | bool %}
export OS_INSECURE='true'
export OS_VERIFY='false'
# 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'
alias tacker='tacker --insecure'
alias manila='manila --insecure'
{% endif %}