puppet-ceilometer/manifests/config.pp
Jake Yip 6170a18bf5 Fix filename of api_paste.ini
The default filename is api_paste.ini, not api-paste.ini. Since we do
not have an option to set the file name using
[DEFAULT]/api_paste_config, we should fix the default to make sure it
works.

Change-Id: I054af2663a376b5ec2a0606437ff3fb90c00934a
2017-06-16 10:39:56 +10:00

41 lines
1.1 KiB
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
#
# [*ceilometer_api_paste_ini*]
# (optional) Allow configuration of /etc/ceilometer/api_paste.ini options.
#
# 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 = {},
$ceilometer_api_paste_ini = {},
) {
include ::ceilometer::deps
validate_hash($ceilometer_config)
validate_hash($ceilometer_api_paste_ini)
create_resources('ceilometer_config', $ceilometer_config)
create_resources('ceilometer_api_paste_ini', $ceilometer_api_paste_ini)
}