c9cadc5352
This ceilometer::config is aim to use ceilometer_config resource to manage custom configurations in ceilometer.conf. This will make end user easy to add their own custom options in Hiera data. Fully implements blueprint ceilometer-custom-config Change-Id: I82b38ca26d4d99471a74b2c116e4c4133262187c
32 lines
817 B
Puppet
32 lines
817 B
Puppet
# == Class: ceilometer::config
|
|
#
|
|
# This class is used to manage arbitrary ceilometer configurations.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*ceilometer_config*]
|
|
# (optional) Allow configuration of ceilometer.conf.
|
|
#
|
|
# The value is an hash of ceilometer_config resource. Example:
|
|
# { 'DEFAULT/foo' => { value => 'fooValue'},
|
|
# 'DEFAULT/bar' => { value => 'barValue'}
|
|
# }
|
|
#
|
|
# In yaml format, Example:
|
|
# ceilometer_config:
|
|
# DEFAULT/foo:
|
|
# value: fooValue
|
|
# DEFAULT/bar:
|
|
# value: barValue
|
|
#
|
|
# NOTE: The configuration MUST NOT be already handled by this module
|
|
# or Puppet catalog compilation will fail with duplicate resources.
|
|
#
|
|
class ceilometer::config (
|
|
$ceilometer_config = {},
|
|
) {
|
|
validate_hash($ceilometer_config)
|
|
|
|
create_resources('ceilometer_config', $ceilometer_config)
|
|
}
|