memcached (openstack) is no longer in use
[mirror/dsa-puppet.git] / 3rdparty / modules / cinder / manifests / config.pp
1 # == Class: cinder::config
2 #
3 # This class is used to manage arbitrary cinder configurations.
4 #
5 # === Parameters
6 #
7 # [*xxx_config*]
8 #   (optional) Allow configuration of arbitrary cinder configurations.
9 #   The value is an hash of xxx_config resources. Example:
10 #   { 'DEFAULT/foo' => { value => 'fooValue'},
11 #     'DEFAULT/bar' => { value => 'barValue'}
12 #   }
13 #
14 #   In yaml format, Example:
15 #   xxx_config:
16 #     DEFAULT/foo:
17 #       value: fooValue
18 #     DEFAULT/bar:
19 #       value: barValue
20 #
21 # [**cinder_config**]
22 #   (optional) Allow configuration of cinder.conf configurations.
23 #
24 # [**api_paste_ini_config**]
25 #   (optional) Allow configuration of /etc/cinder/api-paste.ini configurations.
26 #
27 #   NOTE: The configuration MUST NOT be already handled by this module
28 #   or Puppet catalog compilation will fail with duplicate resources.
29 #
30 class cinder::config (
31   $cinder_config         = {},
32   $api_paste_ini_config  = {},
33 ) {
34   validate_hash($cinder_config)
35   validate_hash($api_paste_ini_config)
36
37   create_resources('cinder_config', $cinder_config)
38   create_resources('cinder_api_paste_ini', $api_paste_ini_config)
39 }