Add OS_CACERT env variable

Once internal CA is used, that is not part of default trust store,
we need to ensure that openstack clients will use system-trust instead
of the default one provided by certifi library.

Change-Id: Ibe6b59b497fa665b722b648a57cb5568b1b29b5f
This commit is contained in:
Dmitriy Rabotyagov 2021-06-24 11:42:34 +03:00
parent af0c55f683
commit ea1f0c084f
1 changed files with 2 additions and 0 deletions

View File

@ -47,4 +47,6 @@ alias openstack='openstack --insecure'
alias swift='swift --insecure'
alias tacker='tacker --insecure'
alias manila='manila --insecure'
{% else %}
export OS_CACERT={{ (ansible_facts['os_family'] | lower == 'redhat') | ternary('/etc/pki/tls/certs/ca-bundle.crt', '/etc/ssl/certs/ca-certificates.crt') }}
{% endif %}