Add notification_topics options

Add notification_topics to configure AMQP topic used for OpenStack
notifications.

Change-Id: Ia725d7ce0ce9ab7c47e2a68906777996bc4ba4d6
This commit is contained in:
ZhongShengping
2017-03-01 10:40:25 +08:00
parent a9515d39d8
commit afb36bf81c
3 changed files with 14 additions and 0 deletions

View File

@@ -64,6 +64,11 @@
# transport://user:pass@host1:port[,hostN:portN]/virtual_host
# Defaults to $::os_service_default.
#
# [*notification_topics*]
# (optional) AMQP topics to publish to when using the RPC notification driver.
# (list value)
# Default to $::os_service_default
#
# [*notification_driver*]
# (optional) Driver or drivers to handle sending notifications.
# Defaults to 'messaging'
@@ -260,6 +265,7 @@ class manila (
$control_exchange = 'openstack',
$notification_transport_url = $::os_service_default,
$notification_driver = 'messaging',
$notification_topics = $::os_service_default,
$rabbit_ha_queues = $::os_service_default,
$rabbit_use_ssl = $::os_service_default,
$kombu_ssl_ca_certs = $::os_service_default,
@@ -398,6 +404,7 @@ deprecated. Please use manila::default_transport_url instead.")
oslo::messaging::notifications { 'manila_config':
transport_url => $notification_transport_url,
driver => $notification_driver,
topics => $notification_topics,
}
manila_config {

View File

@@ -0,0 +1,4 @@
---
features:
- Add new parameter "notification_topics", AMQP topic used for
OpenStack notifications.

View File

@@ -39,6 +39,9 @@ describe 'manila' do
is_expected.to contain_manila_config('oslo_messaging_notifications/transport_url').with(
:value => '<SERVICE DEFAULT>'
)
is_expected.to contain_manila_config('oslo_messaging_notifications/topics').with(
:value => '<SERVICE DEFAULT>'
)
is_expected.to contain_manila_config('oslo_messaging_notifications/driver').with(
:value => 'messaging'
)