Update rabbitmq ssl settings

Change-Id: I859833e9558ef6139c3785ab73740871fb296c06
Related-PROD: PROD-27153
diff --git a/octavia/files/queens/octavia_api.conf b/octavia/files/queens/octavia_api.conf
index 9cfac99..5962987 100644
--- a/octavia/files/queens/octavia_api.conf
+++ b/octavia/files/queens/octavia_api.conf
@@ -980,7 +980,8 @@
 
 [oslo_messaging_rabbit]
 
-{%- set _data = api %}
+{%- set _data = api.message_queue %}
+{%- if 'cacert_file' not in _data.keys() %}{% do _data.update({'cacert_file': api.cacert_file}) %}{% endif %}
 {%- include "oslo_templates/files/queens/oslo/messaging/_rabbit.conf" %}
 
 [oslo_messaging_zmq]
diff --git a/octavia/files/queens/octavia_manager.conf b/octavia/files/queens/octavia_manager.conf
index 99de601..791e71b 100644
--- a/octavia/files/queens/octavia_manager.conf
+++ b/octavia/files/queens/octavia_manager.conf
@@ -1026,12 +1026,13 @@
 
 [oslo_messaging_rabbit]
 
-{%- set _data = manager %}
+{%- set _data = manager.message_queue %}
+{%- if 'cacert_file' not in _data.keys() %}{% do _data.update({'cacert_file': manager.cacert_file}) %}{% endif %}
 {%- include "oslo_templates/files/queens/oslo/messaging/_rabbit.conf" %}
 
 [oslo_messaging_zmq]
 
-{%- set _data = manager %}
+{%- set _data = manager.message_queue %}
 {%- include "oslo_templates/files/queens/oslo/messaging/_zmq.conf" %}
 
 [oslo_policy]