summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2017-10-31 03:56:02 -0700
committerGitHub <noreply@github.com>2017-10-31 03:56:02 -0700
commitdd5cee2a152437ae1afc3a9574451cc7c1475d2b (patch)
tree30cb0e23d72f7e04b6f54395981e19ee1ba45fff /roles
parent34a155225c218bab17a3902841f950065015947b (diff)
parentfd759f512873f4be929c3e8a401b7b0395206e88 (diff)
downloadopenshift-dd5cee2a152437ae1afc3a9574451cc7c1475d2b.tar.gz
openshift-dd5cee2a152437ae1afc3a9574451cc7c1475d2b.tar.bz2
openshift-dd5cee2a152437ae1afc3a9574451cc7c1475d2b.tar.xz
openshift-dd5cee2a152437ae1afc3a9574451cc7c1475d2b.zip
Merge pull request #5722 from qinpingli/sc_openstack
Automatic merge from submit-queue. Create default storageclass for cloudprovider openstack With this patch, a default storageclass will be created on openstack cloudprovider after installation.
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_default_storage_class/defaults/main.yml6
-rw-r--r--roles/openshift_default_storage_class/tasks/main.yml2
2 files changed, 7 insertions, 1 deletions
diff --git a/roles/openshift_default_storage_class/defaults/main.yml b/roles/openshift_default_storage_class/defaults/main.yml
index bdece7640..014c06641 100644
--- a/roles/openshift_default_storage_class/defaults/main.yml
+++ b/roles/openshift_default_storage_class/defaults/main.yml
@@ -13,6 +13,12 @@ openshift_storageclass_defaults:
parameters:
type: pd-standard
+ openstack:
+ name: standard
+ provisioner: cinder
+ parameters:
+ fstype: xfs
+
openshift_storageclass_default: "true"
openshift_storageclass_name: "{{ openshift_storageclass_defaults[openshift_cloudprovider_kind]['name'] }}"
openshift_storageclass_provisioner: "{{ openshift_storageclass_defaults[openshift_cloudprovider_kind]['provisioner'] }}"
diff --git a/roles/openshift_default_storage_class/tasks/main.yml b/roles/openshift_default_storage_class/tasks/main.yml
index 172e2ac25..281ec8ed5 100644
--- a/roles/openshift_default_storage_class/tasks/main.yml
+++ b/roles/openshift_default_storage_class/tasks/main.yml
@@ -1,5 +1,5 @@
---
-# Install default storage classes in GCE & AWS
+# Install default storage classes in GCE & AWS & OPENSTACK
- name: Ensure storageclass object
oc_storageclass:
name: "{{ openshift_storageclass_name }}"