From 9be4c24d98176304a823d14817b74faef02310f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?= Date: Wed, 4 Mar 2015 15:33:12 +0100 Subject: [PATCH] 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 --- manifests/notify/rabbitmq.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/manifests/notify/rabbitmq.pp b/manifests/notify/rabbitmq.pp index b9c9a5ab..a4b2c4a8 100644 --- a/manifests/notify/rabbitmq.pp +++ b/manifests/notify/rabbitmq.pp @@ -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;