From 964ede71716915f29fd149d3e37ff66df3aa5a37 Mon Sep 17 00:00:00 2001 From: xiaojueguan Date: Tue, 19 May 2020 18:36:36 +0800 Subject: [PATCH] enable prometheus-openstack-exporter to use ca cert you might refer to: https://github.com/gophercloud/utils/blob/b0167b94122ca14ce50258a760b4e9b22788f0d7/openstack/clientconfig/results.go#L41 Change-Id: Ia326360c412aad9ca4d1735cc6486aa2fce22c1a Closes-Bug: #1850812 --- ansible/roles/prometheus/templates/clouds.yml.j2 | 1 + releasenotes/notes/bug-1850812-e840453d44e17d34.yaml | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 releasenotes/notes/bug-1850812-e840453d44e17d34.yaml diff --git a/ansible/roles/prometheus/templates/clouds.yml.j2 b/ansible/roles/prometheus/templates/clouds.yml.j2 index 105178ba58..bbbf44b5e9 100644 --- a/ansible/roles/prometheus/templates/clouds.yml.j2 +++ b/ansible/roles/prometheus/templates/clouds.yml.j2 @@ -10,3 +10,4 @@ clouds: project_domain_name: 'Default' user_domain_name: 'Default' auth_url: {{ admin_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ keystone_admin_port }}/v3 + cacert: {{ openstack_cacert }} diff --git a/releasenotes/notes/bug-1850812-e840453d44e17d34.yaml b/releasenotes/notes/bug-1850812-e840453d44e17d34.yaml new file mode 100644 index 0000000000..56c95b887b --- /dev/null +++ b/releasenotes/notes/bug-1850812-e840453d44e17d34.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - | + Fix prometheus-openstack-exporter to use CA certificate.