Fix setting rabbit params
Change-Id: Icca49f86acbff2b537afcbd9fa43a8fdf1711b1a
Related-Prod: https://mirantis.jira.com/browse/PROD-24146
diff --git a/aodh/files/queens/aodh.conf.Debian b/aodh/files/queens/aodh.conf.Debian
index 826cdbc..54f23bc 100644
--- a/aodh/files/queens/aodh.conf.Debian
+++ b/aodh/files/queens/aodh.conf.Debian
@@ -236,6 +236,18 @@
[healthcheck]
{%- include "oslo_templates/files/queens/oslo/_healthcheck.conf" %}
+{%- if server.message_queue is defined %}
+{%- set _data = server.message_queue %}
+{%- if _data.engine == 'rabbitmq' %}
+ {%- set messaging_engine = 'rabbit' %}
+{%- else %}
+ {%- set messaging_engine = _data.engine %}
+{%- endif %}
+[oslo_messaging_{{ messaging_engine }}]
+{%- if _data.ssl is defined and 'cacert_file' not in _data.get('ssl', {}).keys() %}{% do _data['ssl'].update({'cacert_file': server.cacert_file}) %}{% endif %}
+{%- include "oslo_templates/files/queens/oslo/messaging/_" + messaging_engine + ".conf" %}
+{%- endif %}
+
[oslo_policy]
{%- if server.oslo_policy is defined %}
{%- set _data = server.oslo_policy %}