File: config.pp

package info (click to toggle)
puppet-module-ceilometer 27.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,264 kB
  • sloc: ruby: 1,888; python: 33; makefile: 11; sh: 10
file content (36 lines) | stat: -rw-r--r-- 1,021 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# == 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_rootwrap_config*]
#   (optional) Allow configuration of rootwrap.conf.
#
#   NOTE: The configuration MUST NOT be already handled by this module
#   or Puppet catalog compilation will fail with duplicate resources.
#
class ceilometer::config (
  Hash $ceilometer_config          = {},
  Hash $ceilometer_rootwrap_config = {},
) {
  include ceilometer::deps

  create_resources('ceilometer_config', $ceilometer_config)
  create_resources('ceilometer_rootwrap_config', $ceilometer_rootwrap_config)
}