File: config.pp

package info (click to toggle)
puppet-module-aodh 27.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,160 kB
  • sloc: ruby: 2,381; python: 33; makefile: 10; sh: 10
file content (34 lines) | stat: -rw-r--r-- 956 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
# == Class: aodh::config
#
# This class is used to manage arbitrary aodh configurations.
#
# === Parameters
#
# [*aodh_config*]
#   (optional) Allow configuration of arbitrary aodh configurations.
#   The value is an hash of aodh_config resources. Example:
#   { 'DEFAULT/foo' => { value => 'fooValue'},
#     'DEFAULT/bar' => { value => 'barValue'}
#   }
#   In yaml format, Example:
#   aodh_config:
#     DEFAULT/foo:
#       value: fooValue
#     DEFAULT/bar:
#       value: barValue
#
# [*aodh_api_paste_ini*]
#   (optional) Allow configuration of /etc/aodh/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 aodh::config (
  Hash $aodh_config        = {},
  Hash $aodh_api_paste_ini = {},
) {
  include aodh::deps

  create_resources('aodh_config', $aodh_config)
  create_resources('aodh_api_paste_ini', $aodh_api_paste_ini)
}