diff options
author | Ping Qin <piqin@redhat.com> | 2017-10-09 16:00:45 +0800 |
---|---|---|
committer | Ping Qin <piqin@redhat.com> | 2017-10-27 17:35:45 +0800 |
commit | f4a2d002b374c3b6e8ed31abf2f977f75815ddeb (patch) | |
tree | 3f22f1fbbc95a73c2c167e83d0573f4d0ad88b41 /roles | |
parent | 09465427d024b353fbd0f58a22dbda3f185341f7 (diff) | |
download | openshift-f4a2d002b374c3b6e8ed31abf2f977f75815ddeb.tar.gz openshift-f4a2d002b374c3b6e8ed31abf2f977f75815ddeb.tar.bz2 openshift-f4a2d002b374c3b6e8ed31abf2f977f75815ddeb.tar.xz openshift-f4a2d002b374c3b6e8ed31abf2f977f75815ddeb.zip |
Create default storageclass for cloudprovider openstack
Diffstat (limited to 'roles')
-rw-r--r-- | roles/openshift_default_storage_class/defaults/main.yml | 6 | ||||
-rw-r--r-- | roles/openshift_default_storage_class/tasks/main.yml | 2 |
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..b9290c886 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: sc-cinder + 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 }}" |