[QUEENS] Fix cacert file

Change-Id: Iee753594f90036c4cf89d35f5fa18ae2b04f777e
Related-Prod: https://mirantis.jira.com/browse/PROD-20721
diff --git a/gnocchi/files/4.2/gnocchi.conf b/gnocchi/files/4.2/gnocchi.conf
index a26bb6e..d7d5a16 100644
--- a/gnocchi/files/4.2/gnocchi.conf
+++ b/gnocchi/files/4.2/gnocchi.conf
@@ -170,6 +170,7 @@
 [keystone_authtoken]
 
 {%- set _data = server.identity %}
+{%- if 'cacert_file' not in _data.keys() %}{% do _data.update({'cacert_file': server.cacert_file}) %}{% endif %}
 {%- set auth_type = _data.get('auth_type', 'password') %}
 {%- include "oslo_templates/files/queens/keystonemiddleware/_auth_token.conf" %}
 {%- include "oslo_templates/files/queens/keystoneauth/_type_" + auth_type + ".conf" %}
@@ -236,4 +237,4 @@
 {%- if _storage.driver is defined %}
 driver = {{ _storage.driver }}
 {% include "gnocchi/files/" + cfg.version|string + "/storage/_" + _storage.driver + ".conf" %}
-{%- endif %}
\ No newline at end of file
+{%- endif %}