summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavis Phillips <davis.phillips@gmail.com>2018-01-15 10:48:43 -0600
committerDavis Phillips <davis.phillips@gmail.com>2018-01-15 10:48:43 -0600
commit093ad149ae173da9869c2ba1968e66c74ed002e9 (patch)
tree929ff0e3040ab251d645c054843164dd8ec6f358
parent8de2b99d915fadc6579320b7b74354ab33213067 (diff)
downloadopenshift-093ad149ae173da9869c2ba1968e66c74ed002e9.tar.gz
openshift-093ad149ae173da9869c2ba1968e66c74ed002e9.tar.bz2
openshift-093ad149ae173da9869c2ba1968e66c74ed002e9.tar.xz
openshift-093ad149ae173da9869c2ba1968e66c74ed002e9.zip
vsphere storage default add
-rw-r--r--playbooks/openshift-hosted/private/openshift_default_storage_class.yml4
-rw-r--r--roles/openshift_default_storage_class/defaults/main.yml6
2 files changed, 9 insertions, 1 deletions
diff --git a/playbooks/openshift-hosted/private/openshift_default_storage_class.yml b/playbooks/openshift-hosted/private/openshift_default_storage_class.yml
index 62fe0dd60..c59ebcead 100644
--- a/playbooks/openshift-hosted/private/openshift_default_storage_class.yml
+++ b/playbooks/openshift-hosted/private/openshift_default_storage_class.yml
@@ -3,4 +3,6 @@
hosts: oo_first_master
roles:
- role: openshift_default_storage_class
- when: openshift_cloudprovider_kind is defined and (openshift_cloudprovider_kind == 'aws' or openshift_cloudprovider_kind == 'gce' or openshift_cloudprovider_kind == 'openstack')
+ when:
+ - openshift_cloudprovider_kind is defined
+ - openshift_cloudprovider_kind in ['aws','gce','openstack','vsphere']
diff --git a/roles/openshift_default_storage_class/defaults/main.yml b/roles/openshift_default_storage_class/defaults/main.yml
index 014c06641..7ca122fc9 100644
--- a/roles/openshift_default_storage_class/defaults/main.yml
+++ b/roles/openshift_default_storage_class/defaults/main.yml
@@ -19,6 +19,12 @@ openshift_storageclass_defaults:
parameters:
fstype: xfs
+ vsphere:
+ provisioner: vsphere-volume
+ name: standard
+ parameters:
+ datastore: "{{ openshift_cloudprovider_vsphere_datacenter }}"
+
openshift_storageclass_default: "true"
openshift_storageclass_name: "{{ openshift_storageclass_defaults[openshift_cloudprovider_kind]['name'] }}"
openshift_storageclass_provisioner: "{{ openshift_storageclass_defaults[openshift_cloudprovider_kind]['provisioner'] }}"