openstack-ansible-openstack.../templates/environment.j2
Dmitriy Rabotyagov 92b1d408b8 Set REQUESTS_CA_BUNDLE env var
In order to force requests module inside venvs to trust system-trusted
certificate authorities, we need to define environment variable
that will provide full path to CA file. Otherwise certifi provided file
will be used, that can't be updated with new CA once they're added
to system trust store.

Change-Id: I79446813602ae094bb788d3c29654fb814ec19a8
2021-06-25 13:26:46 +00:00

8 lines
236 B
Django/Jinja

PATH="{{ openstack_host_environment_path | join(':') }}"
REQUESTS_CA_BUNDLE="{{ openstack_ca_bundle_path }}"
{% for key, value in global_environment_variables.items() %}
{% if value %}
{{ key }}={{ value }}
{% endif %}
{% endfor %}