Browse Source

Update messaging notification configuration

This patch add the conditional inclusion of the notification
section of the service configuration. This ensures that oslo.messaging
notifications use the correct transport for deployments that have
separate rpc and notify messaging backends. For example, if the
transport_url is not provided in the notification section of the
service configuration, the transport_url specified in the default
section will be used instead.

This patch conditionally selects the notifier driver. The noop
driver will be selected when notification publishing is disabled.
The messagingv2 driver is selected when notification publishing is
enabled.

Change-Id: Ie5cc5499980f986f1a7e530adf42f4dcc43fbaca
Closes-Bug: #1794320
ZhijunWei 7 months ago
parent
commit
3cdd0d103a
2 changed files with 4 additions and 0 deletions
  1. 3
    0
      defaults/main.yml
  2. 1
    0
      templates/designate.conf.j2

+ 3
- 0
defaults/main.yml View File

@@ -16,6 +16,9 @@
16 16
 ## Verbosity Options
17 17
 debug: False
18 18
 
19
+# Enable/Disable Ceilometer
20
+designate_ceilometer_enabled: False
21
+
19 22
 # Set the host which will execute the shade modules
20 23
 # for the service setup. The host must already have
21 24
 # clouds.yaml properly configured.

+ 1
- 0
templates/designate.conf.j2 View File

@@ -33,6 +33,7 @@ rabbit_notification_exchange = designate
33 33
 rabbit_notification_topic = notifications
34 34
 
35 35
 [oslo_messaging_notifications]
36
+driver = {% if designate_ceilometer_enabled %}messagingv2{% else %}noop{% endif %}
36 37
 transport_url = {{ designate_oslomsg_notify_transport }}://{% for host in designate_oslomsg_notify_servers.split(',') %}{{ designate_oslomsg_notify_userid }}:{{ designate_oslomsg_notify_password }}@{{ host }}:{{ designate_oslomsg_notify_port }}{% if not loop.last %},{% else %}/{{ designate_oslomsg_notify_vhost }}{% if designate_oslomsg_notify_use_ssl | bool %}?ssl=1{% else %}?ssl=0{% endif %}{% endif %}{% endfor %}
37 38
 
38 39
 ########################

Loading…
Cancel
Save