From 95eb158e7e00f3958f6f3c698fa2900ec5648abd Mon Sep 17 00:00:00 2001 From: Frode Nordahl Date: Fri, 19 Jun 2020 08:28:18 +0200 Subject: [PATCH] Support undercloud running TLS (#330) Consume the `OS_CACERT` environment variable when setting up undercloud auth. Fixes #329 --- zaza/openstack/utilities/openstack.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zaza/openstack/utilities/openstack.py b/zaza/openstack/utilities/openstack.py index 4963247..780d2df 100644 --- a/zaza/openstack/utilities/openstack.py +++ b/zaza/openstack/utilities/openstack.py @@ -1621,6 +1621,10 @@ def get_undercloud_auth(): if os_project_id is not None: auth_settings['OS_PROJECT_ID'] = os_project_id + _os_cacert = os.environ.get('OS_CACERT') + if _os_cacert: + auth_settings.update({'OS_CACERT': _os_cacert}) + # Validate settings for key, settings in list(auth_settings.items()): if settings is None: