puppet-cinder/manifests/ceilometer.pp
Andrew Smith f8185bb497 Add transport_url parameters for oslo.messaging
This commit adds the transport_url parameters for oslo.messaging. The
url is of the form:

  transport://user:pass@host1:port[,hostN:portN]/virtual_host

Where the transport scheme specifies the rpc or notification backend
as one of rabbit, amqp, zmq, etc. Oslo.messaging is deprecating the
host, port, and auth configuration options [1]. All drivers will get
these options via the transport_url.

This patch:
* use oslo::messaging::default resource
* use oslo::messaging::notifications resource
* add parameters for transport_url(s)
* update spec tests
* add feature release note

[1] https://review.openstack.org/#/c/317285/

Change-Id: If5f30ba1944d897d2dd63539f4bb8a80e6c46c5e
2016-05-31 14:48:03 -04:00

32 lines
1.2 KiB
Puppet

# == Class: cinder::ceilometer
#
# Setup Cinder to enable ceilometer can retrieve volume samples
# Ref: http://docs.openstack.org/developer/ceilometer/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.
#
class cinder::ceilometer (
$notification_transport_url = $::os_service_default,
$notification_driver = 'messagingv2',
) {
oslo::messaging::notifications { 'cinder_config':
transport_url => $notification_transport_url,
driver => $notification_driver,
}
}