]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/cinder/manifests/volume/iscsi.pp
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / cinder / manifests / volume / iscsi.pp
diff --git a/3rdparty/modules/cinder/manifests/volume/iscsi.pp b/3rdparty/modules/cinder/manifests/volume/iscsi.pp
new file mode 100644 (file)
index 0000000..e9eb4da
--- /dev/null
@@ -0,0 +1,17 @@
+#
+class cinder::volume::iscsi (
+  $iscsi_ip_address,
+  $volume_driver     = 'cinder.volume.drivers.lvm.LVMISCSIDriver',
+  $volume_group      = 'cinder-volumes',
+  $iscsi_helper      = $::cinder::params::iscsi_helper,
+) {
+
+  include cinder::params
+
+  cinder::backend::iscsi { 'DEFAULT':
+    iscsi_ip_address   => $iscsi_ip_address,
+    volume_driver      => $volume_driver,
+    volume_group       => $volume_group,
+    iscsi_helper       => $iscsi_helper
+  }
+}