VMware: Add cinder support to devstack

The patch set adds cinder support to devstack. VMware cinder support
can be found at:
 - Nova - https://review.openstack.org/#/c/40245/
 - Cinder - https://review.openstack.org/#/c/41600/

Change-Id: I0a05643010ea6cfb6635505accc3dcf411fdd419
diff --git a/lib/cinder b/lib/cinder
index 14950c7..b7f765b 100644
--- a/lib/cinder
+++ b/lib/cinder
@@ -287,6 +287,14 @@
             CINDER_GLUSTERFS_SHARES=$(echo $CINDER_GLUSTERFS_SHARES | tr ";" "\n")
             echo "$CINDER_GLUSTERFS_SHARES" > $CINDER_CONF_DIR/glusterfs_shares
         fi
+    elif [ "$CINDER_DRIVER" == "vsphere" ]; then
+        echo_summary "Using VMware vCenter driver"
+        iniset $CINDER_CONF DEFAULT enabled_backends vmware
+        iniset $CINDER_CONF vmware host_ip "$VMWAREAPI_IP"
+        iniset $CINDER_CONF vmware host_username "$VMWAREAPI_USER"
+        iniset $CINDER_CONF vmware host_password "$VMWAREAPI_PASSWORD"
+        iniset $CINDER_CONF vmware cluster_name "$VMWAREAPI_CLUSTER"
+        iniset $CINDER_CONF vmware volume_driver "cinder.volume.drivers.vmware.vmdk.VMwareVcVmdkDriver"
     fi
 
     if [[ is_fedora && $DISTRO =~ (rhel6) ]]; then