try again, with puppetforge modules, correctly included now
[mirror/dsa-puppet.git] / 3rdparty / modules / nova / manifests / config.pp
1 # == Class: nova::config
2 #
3 # This class is used to manage arbitrary Nova configurations.
4 #
5 # === Parameters
6 #
7 # [*nova_config*]
8 #   (optional) Allow configuration of arbitrary Nova configurations.
9 #   The value is an hash of nova_config resources. Example:
10 #   { 'DEFAULT/foo' => { value => 'fooValue'},
11 #     'DEFAULT/bar' => { value => 'barValue'}
12 #   }
13 #   In yaml format, Example:
14 #   nova_config:
15 #     DEFAULT/foo:
16 #       value: fooValue
17 #     DEFAULT/bar:
18 #       value: barValue
19 #
20 #   NOTE: The configuration MUST NOT be already handled by this module
21 #   or Puppet catalog compilation will fail with duplicate resources.
22 #
23 class nova::config (
24   $nova_config        = {},
25   $nova_paste_api_ini = {},
26 ) {
27
28   validate_hash($nova_config)
29   validate_hash($nova_paste_api_ini)
30
31   create_resources('nova_config', $nova_config)
32   create_resources('nova_paste_api_ini', $nova_paste_api_ini)
33 }