Add $notification_driver parameter to notify::rabbitmq
It makes possible to control the value of notification_driver setting and defaults to 'messaging' to maintain backwards compatibility. Change-Id: I3f2c29adbfb605ef288962f72ba81c11811cb357
This commit is contained in:
parent
c114412c36
commit
9be4c24d98
@ -56,6 +56,9 @@
|
||||
# (Optional) Use durable queues in broker.
|
||||
# Defaults to false.
|
||||
#
|
||||
# [*notification_driver*]
|
||||
# Notification driver to use. Defaults to 'messaging'.
|
||||
|
||||
class glance::notify::rabbitmq(
|
||||
$rabbit_password,
|
||||
$rabbit_userid = 'guest',
|
||||
@ -72,6 +75,7 @@ class glance::notify::rabbitmq(
|
||||
$rabbit_notification_topic = 'notifications',
|
||||
$rabbit_durable_queues = false,
|
||||
$amqp_durable_queues = false,
|
||||
$notification_driver = 'messaging',
|
||||
) {
|
||||
|
||||
if $rabbit_durable_queues {
|
||||
@ -96,7 +100,7 @@ class glance::notify::rabbitmq(
|
||||
}
|
||||
|
||||
glance_api_config {
|
||||
'DEFAULT/notification_driver': value => 'messaging';
|
||||
'DEFAULT/notification_driver': value => $notification_driver;
|
||||
'DEFAULT/rabbit_virtual_host': value => $rabbit_virtual_host;
|
||||
'DEFAULT/rabbit_password': value => $rabbit_password, secret => true;
|
||||
'DEFAULT/rabbit_userid': value => $rabbit_userid;
|
||||
|
Loading…
Reference in New Issue
Block a user