]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/cinder/manifests/config.pp
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / cinder / manifests / config.pp
diff --git a/3rdparty/modules/cinder/manifests/config.pp b/3rdparty/modules/cinder/manifests/config.pp
new file mode 100644 (file)
index 0000000..0fa29a3
--- /dev/null
@@ -0,0 +1,39 @@
+# == Class: cinder::config
+#
+# This class is used to manage arbitrary cinder configurations.
+#
+# === Parameters
+#
+# [*xxx_config*]
+#   (optional) Allow configuration of arbitrary cinder configurations.
+#   The value is an hash of xxx_config resources. Example:
+#   { 'DEFAULT/foo' => { value => 'fooValue'},
+#     'DEFAULT/bar' => { value => 'barValue'}
+#   }
+#
+#   In yaml format, Example:
+#   xxx_config:
+#     DEFAULT/foo:
+#       value: fooValue
+#     DEFAULT/bar:
+#       value: barValue
+#
+# [**cinder_config**]
+#   (optional) Allow configuration of cinder.conf configurations.
+#
+# [**api_paste_ini_config**]
+#   (optional) Allow configuration of /etc/cinder/api-paste.ini configurations.
+#
+#   NOTE: The configuration MUST NOT be already handled by this module
+#   or Puppet catalog compilation will fail with duplicate resources.
+#
+class cinder::config (
+  $cinder_config         = {},
+  $api_paste_ini_config  = {},
+) {
+  validate_hash($cinder_config)
+  validate_hash($api_paste_ini_config)
+
+  create_resources('cinder_config', $cinder_config)
+  create_resources('cinder_api_paste_ini', $api_paste_ini_config)
+}