puppet-ceilometer/manifests/dispatcher/gnocchi.pp
Mehdi Abaakouk 1ef6b0b7f6 deprecate ceilometer::dispatcher::gnocchi::url
The url option of ceilometer::dispatcher::gnocchi doesn't exists anymore
since a while in Ceilometer.

So this change deprecate it for removal.

Change-Id: I2b87de910b73d65111d609b8722183c1852f9c35
2017-03-22 12:31:28 -04:00

55 lines
1.6 KiB
Puppet

# == Class: ceilometer::dispatcher::gnocchi
#
# Configure Gnocchi dispatcher for Ceilometer
#
# === Parameters:
#
# [*filter_service_activity*]
# (Optional) Filter out samples generated by Gnocchi service activity.
# Defaults to $::os_service_default.
#
# [*filter_project*]
# (Optional) Gnocchi project used to filter out samples
# generated by Gnocchi service activity
# Defaults to $::os_service_default.
#
# [*archive_policy*]
# (Optional) The archive policy to use when the dispatcher
# Defaults to $::os_service_default.
#
# [*resources_definition_file*]
# (Optional) The Yaml file that defines mapping between samples
# and gnocchi resources/metrics.
# Defaults to $::os_service_default.
#
# DEPRECATED PARAMETERS
#
# [*url*]
# (Optional) Gnocchi URL
# Defaults to undef
#
class ceilometer::dispatcher::gnocchi (
$filter_service_activity = $::os_service_default,
$filter_project = $::os_service_default,
$archive_policy = $::os_service_default,
$resources_definition_file = $::os_service_default,
# DEPRECATED PARAMETERS
$url = undef,
) {
include ::ceilometer::deps
if $url {
warning('url parameter is deprecated, has no effect and will be removed in the Q release.')
}
ceilometer_config {
'dispatcher_gnocchi/filter_service_activity': value => $filter_service_activity;
'dispatcher_gnocchi/filter_project': value => $filter_project;
'dispatcher_gnocchi/archive_policy': value => $archive_policy;
'dispatcher_gnocchi/resources_definition_file': value => $resources_definition_file;
}
}