]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/cinder/manifests/backends.pp
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / cinder / manifests / backends.pp
diff --git a/3rdparty/modules/cinder/manifests/backends.pp b/3rdparty/modules/cinder/manifests/backends.pp
new file mode 100644 (file)
index 0000000..7c69719
--- /dev/null
@@ -0,0 +1,28 @@
+# == Class: cinder::backends
+#
+# Class to set the enabled_backends list
+#
+# === Parameters
+#
+# [*enabled_backends*]
+#   (required) a list of ini sections to enable.
+#     This should contain names used in ceph::backend::* resources.
+#     Example: ['volume1', 'volume2', 'sata3']
+#
+# Author: Andrew Woodward <awoodward@mirantis.com>
+class cinder::backends (
+  $enabled_backends    = undef,
+  # DEPRECATED
+  $default_volume_type = false
+  ){
+
+  # Maybe this could be extented to dynamicly find the enabled names
+  cinder_config {
+    'DEFAULT/enabled_backends': value => join($enabled_backends, ',');
+  }
+
+  if $default_volume_type {
+    fail('The default_volume_type parameter is deprecated in this class, you should declare it in cinder::api.')
+  }
+
+}