Browse Source

Add messaging tls support into macros

Change-Id: I9fc8eaff2e6c9538b711be7a85af7d9777c3ccbb
Kirill Bespalov 2 years ago
parent
commit
d5eac9e469
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      exports/oslo_messaging.j2

+ 8
- 0
exports/oslo_messaging.j2 View File

@@ -5,4 +5,12 @@
5 5
   [oslo_messaging_notifications]
6 6
 {%- endif %}
7 7
 transport_url=rabbit://{{ rabbitmq.user }}:{{ rabbitmq.password }}@{{ address('rabbitmq', rabbitmq.port) }}
8
+
9
+{% if security.tls.enabled and rabbitmq.tls.enabled %}
10
+[oslo_messaging_rabbit]
11
+kombu_ssl_version="TLSv1_2"
12
+rabbit_use_ssl = true
13
+kombu_ssl_ca_certs = /opt/ccp/etc/tls/ca.pem
14
+{% endif %}
15
+
8 16
 {%- endmacro %}

Loading…
Cancel
Save