Merge pull request #72 from simonpasquier/add-cinder-lvm-backend
Add LVM Cinder support
diff --git a/cinder/control/backend/lvm.yml b/cinder/control/backend/lvm.yml
new file mode 100644
index 0000000..976a80e
--- /dev/null
+++ b/cinder/control/backend/lvm.yml
@@ -0,0 +1,9 @@
+parameters:
+ cinder:
+ controller:
+ default_volume_type: lvm-driver
+ backend:
+ lvm-driver:
+ engine: lvm
+ type_name: lvm-driver
+ volume_group: cinder-volume
diff --git a/cinder/volume/backend/lvm.yml b/cinder/volume/backend/lvm.yml
new file mode 100644
index 0000000..768fb6b
--- /dev/null
+++ b/cinder/volume/backend/lvm.yml
@@ -0,0 +1,18 @@
+parameters:
+ _param:
+ cinder_lvm_devices: [ "/dev/loop0" ]
+ linux:
+ storage:
+ lvm:
+ cinder-vg:
+ enabled: true
+ name: cinder-volume
+ devices: ${_param:cinder_lvm_devices}
+ cinder:
+ volume:
+ default_volume_type: lvm-driver
+ backend:
+ lvm-driver:
+ engine: lvm
+ type_name: lvm-driver
+ volume_group: cinder-volume
diff --git a/linux/storage/loopback.yml b/linux/storage/loopback.yml
new file mode 100644
index 0000000..adbbe65
--- /dev/null
+++ b/linux/storage/loopback.yml
@@ -0,0 +1,8 @@
+parameters:
+ linux:
+ storage:
+ enabled: true
+ loopback:
+ loop0:
+ file: "/srv/disk0"
+ size: ${_param:loopback_device_size}G