]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/cinder/manifests/volume/nexenta.pp
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / cinder / manifests / volume / nexenta.pp
diff --git a/3rdparty/modules/cinder/manifests/volume/nexenta.pp b/3rdparty/modules/cinder/manifests/volume/nexenta.pp
new file mode 100644 (file)
index 0000000..6b653d8
--- /dev/null
@@ -0,0 +1,52 @@
+# == Class: cinder::volume::nexenta
+#
+# Setups Cinder with Nexenta volume driver.
+#
+# === Parameters
+#
+# [*nexenta_user*]
+#   (required) User name to connect to Nexenta SA.
+#
+# [*nexenta_password*]
+#   (required) Password to connect to Nexenta SA.
+#
+# [*nexenta_host*]
+#   (required) IP address of Nexenta SA.
+#
+# [*nexenta_volume*]
+#   (optional) Pool on SA that will hold all volumes. Defaults to 'cinder'.
+#
+# [*nexenta_target_prefix*]
+#   (optional) IQN prefix for iSCSI targets. Defaults to 'iqn:'.
+#
+# [*nexenta_target_group_prefix*]
+#   (optional) Prefix for iSCSI target groups on SA. Defaults to 'cinder/'.
+#
+# [*nexenta_blocksize*]
+#   (optional) Block size for volumes. Defaults to '8k'.
+#
+# [*nexenta_sparse*]
+#   (optional) Flag to create sparse volumes. Defaults to true.
+#
+class cinder::volume::nexenta (
+  $nexenta_user,
+  $nexenta_password,
+  $nexenta_host,
+  $nexenta_volume               = 'cinder',
+  $nexenta_target_prefix        = 'iqn:',
+  $nexenta_target_group_prefix  = 'cinder/',
+  $nexenta_blocksize            = '8k',
+  $nexenta_sparse               = true
+) {
+
+  cinder::backend::nexenta { 'DEFAULT':
+    nexenta_user                => $nexenta_user,
+    nexenta_password            => $nexenta_password,
+    nexenta_host                => $nexenta_host,
+    nexenta_volume              => $nexenta_volume,
+    nexenta_target_prefix       => $nexenta_target_prefix,
+    nexenta_target_group_prefix => $nexenta_target_group_prefix,
+    nexenta_blocksize           => $nexenta_blocksize,
+    nexenta_sparse              => $nexenta_sparse,
+  }
+}