]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/keystone/manifests/config.pp
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / keystone / manifests / config.pp
diff --git a/3rdparty/modules/keystone/manifests/config.pp b/3rdparty/modules/keystone/manifests/config.pp
new file mode 100644 (file)
index 0000000..5309fa7
--- /dev/null
@@ -0,0 +1,30 @@
+# == Class: keystone::config
+#
+# This class is used to manage arbitrary keystone configurations.
+#
+# === Parameters
+#
+# [*keystone_config*]
+#   (optional) Allow configuration of arbitrary keystone configurations.
+#   The value is an hash of keystone_config resources. Example:
+#   { 'DEFAULT/foo' => { value => 'fooValue'},
+#     'DEFAULT/bar' => { value => 'barValue'}
+#   }
+#   In yaml format, Example:
+#   keystone_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 keystone::config (
+  $keystone_config  = {},
+) {
+
+  validate_hash($keystone_config)
+
+  create_resources('keystone_config', $keystone_config)
+}