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