Add IBM GPFS cinder driver automation
diff --git a/README.rst b/README.rst
index 0a48ec7..1f2eed8 100644
--- a/README.rst
+++ b/README.rst
@@ -234,6 +234,23 @@
password: pass
connection: FC/iSCSI
+Cinder setup with IBM GPFS filesystem
+
+.. code-block:: yaml
+
+ cinder:
+ volume:
+ enabled: true
+ types:
+ - name: GPFS-GOLD
+ engine: gpfs
+ mount_point: '/mnt/gpfs-openstack/cinder/gold'
+ - name: GPFS-SILVER
+ engine: gpfs
+ mount_point: '/mnt/gpfs-openstack/cinder/silver'
+ storage:
+ engine: gpfs
+
## Read more
* https://wiki.openstack.org/wiki/Cinder
diff --git a/cinder/files/kilo/cinder.conf.volume.Debian b/cinder/files/kilo/cinder.conf.volume.Debian
index 1ea94ed..177c491 100644
--- a/cinder/files/kilo/cinder.conf.volume.Debian
+++ b/cinder/files/kilo/cinder.conf.volume.Debian
@@ -413,4 +413,21 @@
{%- endfor %}
+{%- endif %}
+
+{%- if volume.storage.engine == "gpfs" %}
+
+{%- for type in volume.get('types', []) %}
+
+[{{ type.name }}]
+volume_backend_name={{ type.name }}
+volume_driver = cinder.volume.drivers.ibm.gpfs.GPFSDriver
+gpfs_mount_point_base={{ type.mount_point }}
+#gpfs_mount_point_base=/mnt/gpfs-openstack/cinder/gold
+gpfs_max_clone_depth=3
+gpfs_sparse_volumes=true
+gpfs_storage_pool=system
+
+{%- endfor %}
+
{%- endif %}
\ No newline at end of file