puppet-sahara/manifests/notify.pp
Denis Egorenko 0008bc5f89 Update Sahara for using puppet-oslo
This commit switches using of oslo options to a puppet-oslo module:
* oslo messaging notifications;
* oslo messaging rabbitmq;
* oslo log;
* oslo db;
* oslo policy;

Change-Id: I63754d63f00c01737031b2fc713563681c269a60
2016-04-13 18:03:16 +03:00

51 lines
1.3 KiB
Puppet

# == Class: sahara::notify
#
# Ceilometer notifications configuration for Sahara
#
# === Parameters
#
# [*control_exchange*]
# (Optional) The default exchange to scope topics.
# Defaults to $::os_service_default.
#
# [*enable_notifications*]
# (Optional) Enables sending notifications to Ceilometer.
# Defaults to $::os_service_default.
#
# [*notification_driver*]
# (Optional) Notification driver to use.
# Defaults to $::os_service_default.
#
# [*notification_topics*]
# (Optional) Topic to use for notifications.
# Defaults to $::os_service_default.
#
# [*notification_level*]
# (Optional) Notification level for outgoing notifications.
# Defaults to $::os_service_default.
#
class sahara::notify (
$control_exchange = $::os_service_default,
$enable_notifications = $::os_service_default,
$notification_driver = $::os_service_default,
$notification_topics = $::os_service_default,
$notification_level = $::os_service_default,
) {
oslo::messaging::notifications { 'sahara_config':
driver => $notification_driver,
topics => $notification_topics,
}
oslo::messaging::default { 'sahara_config':
control_exchange => $control_exchange
}
sahara_config {
'oslo_messaging_notifications/enable': value => $enable_notifications;
'oslo_messaging_notifications/level': value => $notification_level;
}
}