Add notification_topics options
Add notification_topics to configure AMQP topic used for OpenStack notifications. Change-Id: Ia725d7ce0ce9ab7c47e2a68906777996bc4ba4d6
This commit is contained in:
@@ -64,6 +64,11 @@
|
|||||||
# transport://user:pass@host1:port[,hostN:portN]/virtual_host
|
# transport://user:pass@host1:port[,hostN:portN]/virtual_host
|
||||||
# Defaults to $::os_service_default.
|
# 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*]
|
# [*notification_driver*]
|
||||||
# (optional) Driver or drivers to handle sending notifications.
|
# (optional) Driver or drivers to handle sending notifications.
|
||||||
# Defaults to 'messaging'
|
# Defaults to 'messaging'
|
||||||
@@ -260,6 +265,7 @@ class manila (
|
|||||||
$control_exchange = 'openstack',
|
$control_exchange = 'openstack',
|
||||||
$notification_transport_url = $::os_service_default,
|
$notification_transport_url = $::os_service_default,
|
||||||
$notification_driver = 'messaging',
|
$notification_driver = 'messaging',
|
||||||
|
$notification_topics = $::os_service_default,
|
||||||
$rabbit_ha_queues = $::os_service_default,
|
$rabbit_ha_queues = $::os_service_default,
|
||||||
$rabbit_use_ssl = $::os_service_default,
|
$rabbit_use_ssl = $::os_service_default,
|
||||||
$kombu_ssl_ca_certs = $::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':
|
oslo::messaging::notifications { 'manila_config':
|
||||||
transport_url => $notification_transport_url,
|
transport_url => $notification_transport_url,
|
||||||
driver => $notification_driver,
|
driver => $notification_driver,
|
||||||
|
topics => $notification_topics,
|
||||||
}
|
}
|
||||||
|
|
||||||
manila_config {
|
manila_config {
|
||||||
|
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Add new parameter "notification_topics", AMQP topic used for
|
||||||
|
OpenStack notifications.
|
@@ -39,6 +39,9 @@ describe 'manila' do
|
|||||||
is_expected.to contain_manila_config('oslo_messaging_notifications/transport_url').with(
|
is_expected.to contain_manila_config('oslo_messaging_notifications/transport_url').with(
|
||||||
:value => '<SERVICE DEFAULT>'
|
: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(
|
is_expected.to contain_manila_config('oslo_messaging_notifications/driver').with(
|
||||||
:value => 'messaging'
|
:value => 'messaging'
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user