puppet-cinder/manifests/ceilometer.pp

40 lines
1.4 KiB
Puppet

# == Class: cinder::ceilometer
#
# Setup Cinder to enable ceilometer can retrieve volume samples
# Ref: https://docs.openstack.org/ceilometer/latest/install/manual.html
#
# === Parameters
#
# [*notification_transport_url*]
# (optional) A URL representing the messaging driver to use for notifications
# and its full configuration. Transport URLs take the form:
# transport://user:pass@host1:port[,hostN:portN]/virtual_host
# Defaults to $::os_service_default
#
# [*notification_driver*]
# (option) Driver or drivers to handle sending notifications.
# The default value of 'messagingv2' is for enabling notifications via
# oslo.messaging. 'cinder.openstack.common.notifier.rpc_notifier' is the
# backwards compatible option that will be deprecated. Prior to Grizzly,
# '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
oslo::messaging::notifications { 'cinder_config':
transport_url => $notification_transport_url,
driver => $notification_driver,
topics => $notification_topics,
}
}