Merge pull request #135 from dizz/patch-1

Adds support for system usage data notifications via rabbitmq driver
This commit is contained in:
Dan Bode 2012-07-15 17:59:10 -07:00
commit ac8925528d
1 changed files with 11 additions and 1 deletions

View File

@ -27,6 +27,7 @@
# [report_interval] Interval at which nodes report to data store. Optional.
# Defaults to '10'.
# [root_helper] Command used for roothelper. Optional. Distro specific.
# [monitoring_notifications] A boolean specifying whether or not to send system usage data notifications out on the message queue. Optional, false by default. Only valid for stable/essex.
#
class nova(
# this is how to query all resources from our clutser
@ -49,7 +50,8 @@ class nova(
$verbose = false,
$periodic_interval = '60',
$report_interval = '10',
$root_helper = $::nova::params::root_helper
$root_helper = $::nova::params::root_helper,
$monitoring_notifications = false
) inherits nova::params {
# all nova_config resources should be applied
@ -183,6 +185,14 @@ class nova(
'root_helper': value => $root_helper;
}
if $monitoring_notifications {
nova_config {
'notification_driver': value => 'nova.notifier.rabbit_notifier'
}
}
exec { 'post-nova_config':
command => '/bin/echo "Nova config has changed"',
refreshonly => true,