diff --git a/ansible/roles/gnocchi/templates/gnocchi.conf.j2 b/ansible/roles/gnocchi/templates/gnocchi.conf.j2 index 180fbdcaa5..81dc32693c 100644 --- a/ansible/roles/gnocchi/templates/gnocchi.conf.j2 +++ b/ansible/roles/gnocchi/templates/gnocchi.conf.j2 @@ -70,6 +70,9 @@ policy_file = {{ gnocchi_policy_file }} driver = redis redis_url = {{ redis_connection_string }} {% endif %} +{% if gnocchi_backend_storage == 'swift' %} +swift_cacert = {{ openstack_cacert }} +{% endif %} [storage] {% if gnocchi_backend_storage == 'file' %} @@ -84,6 +87,7 @@ ceph_conffile = /etc/ceph/{{ gnocchi_ceph_cluster }}.conf {% elif gnocchi_backend_storage == 'swift' %} driver = swift swift_authurl = {{ keystone_internal_url }} +swift_cacert = {{ openstack_cacert }} swift_auth_version = 3 swift_user = service:{{ swift_keystone_user }} swift_key = {{ swift_keystone_password }}