Add notification_topics option
Add notification_topics to configure AMQP topic used for OpenStack notifications. Change-Id: I2f319176f51190367bebe1e827b769a39819cc78
This commit is contained in:
parent
9f00a01f96
commit
19dbe23a96
@ -19,9 +19,14 @@
|
||||
# 'cinder.openstack.common.notifier.rabbit_notifier' was used. oslo.messaging
|
||||
# was adopted in icehouse/juno. See LP#1425713.
|
||||
#
|
||||
# [*notification_topics*]
|
||||
# (optional) AMQP topic used for OpenStack notifications
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
class cinder::ceilometer (
|
||||
$notification_transport_url = $::os_service_default,
|
||||
$notification_driver = 'messagingv2',
|
||||
$notification_topics = $::os_service_default,
|
||||
) {
|
||||
|
||||
include ::cinder::deps
|
||||
@ -29,5 +34,6 @@ class cinder::ceilometer (
|
||||
oslo::messaging::notifications { 'cinder_config':
|
||||
transport_url => $notification_transport_url,
|
||||
driver => $notification_driver,
|
||||
topics => $notification_topics,
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- Add new parameter "notification_topics", AMQP topic used
|
||||
for OpenStack notifications.
|
@ -12,6 +12,8 @@ describe 'cinder::ceilometer' do
|
||||
:value => '<SERVICE DEFAULT>')
|
||||
is_expected.to contain_cinder_config('oslo_messaging_notifications/driver').with(
|
||||
:value => 'messagingv2')
|
||||
is_expected.to contain_cinder_config('oslo_messaging_notifications/topics').with(
|
||||
:value => '<SERVICE DEFAULT>')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user