templates: openrc: Add missing 'insecure' and 'verify' options

If openrc_insecure is set to True, we need to export OS_INSECURE and
OS_VERIFY in order for API calls to not verify SSL vertificates. We
also need to add similar options to the clouds.yaml file as well.

Change-Id: I50e411c5ff974ff9a0b67aca6e9d7e48db596df7
This commit is contained in:
Markos Chandras 2018-08-31 15:27:04 +01:00
parent de238f6b4a
commit a4a43d41e4
2 changed files with 6 additions and 0 deletions

View File

@ -16,3 +16,7 @@ clouds:
{% else %}
identity_api_version: "3"
{% endif %}
{% if openrc_insecure | bool %}
verify: false
insecure: true
{% endif %}

View File

@ -31,6 +31,8 @@ export OS_AUTH_VERSION=3
{% endif %}
{% if openrc_insecure | bool %}
export OS_INSECURE=1
export OS_VERIFY=
# Convenience Aliases for Self-Signed Certs
alias cinder='cinder --insecure'
alias glance='glance --insecure'