File: config.pp

package info (click to toggle)
puppet-module-nova 25.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,100 kB
  • sloc: ruby: 11,433; python: 38; sh: 10; makefile: 10
file content (47 lines) | stat: -rw-r--r-- 1,364 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
37
38
39
40
41
42
43
44
45
46
47
# == Class: nova::config
#
# This class is used to manage arbitrary Nova configurations.
#
# example xxx_config
#   (optional) Allow configuration of arbitrary Nova configurations.
#   The value is a hash of xxx_config resources. Example:
#   server_config =>
#   { 'DEFAULT/foo' => { value => 'fooValue'},
#     'DEFAULT/bar' => { value => 'barValue'}
#   }
#
#   NOTE: { 'DEFAULT/foo': value => 'fooValue'; 'DEFAULT/bar': value => 'barValue'} is invalid.
#
#   In yaml format, Example:
#   server_config:
#     DEFAULT/foo:
#       value: fooValue
#     DEFAULT/bar:
#       value: barValue
#
# === Parameters
#
# [*nova_config*]
#   (optional) Allow configuration of nova.conf configurations.
#
# [*nova_api_paste_ini*]
#   (optional) Allow configuration of api-paste.ini configurations.
#
# [*nova_rootwrap_config*]
#   (optional) Allow configuration of rootwrap.conf configurations.
#
#   NOTE: The configuration MUST NOT be already handled by this module
#   or Puppet catalog compilation will fail with duplicate resources.
#
class nova::config (
  Hash $nova_config          = {},
  Hash $nova_api_paste_ini   = {},
  Hash $nova_rootwrap_config = {},
) {

  include nova::deps

  create_resources('nova_config', $nova_config)
  create_resources('nova_api_paste_ini', $nova_api_paste_ini)
  create_resources('nova_rootwrap_config', $nova_rootwrap_config)
}