diff options
Diffstat (limited to 'roles')
-rw-r--r-- | roles/openshift_default_storage_class/defaults/main.yml | 1 | ||||
-rw-r--r-- | roles/openshift_default_storage_class/tasks/main.yml | 19 |
2 files changed, 9 insertions, 11 deletions
diff --git a/roles/openshift_default_storage_class/defaults/main.yml b/roles/openshift_default_storage_class/defaults/main.yml index 4bdc1dd6e..42e8e8018 100644 --- a/roles/openshift_default_storage_class/defaults/main.yml +++ b/roles/openshift_default_storage_class/defaults/main.yml @@ -5,6 +5,7 @@ openshift_storageclass_defaults: provisioner: kubernetes.io/aws-ebs parameters: type: gp2 + encrypted: "false" gce: name: standard provisioner: kubernetes.io/gce-pd diff --git a/roles/openshift_default_storage_class/tasks/main.yml b/roles/openshift_default_storage_class/tasks/main.yml index 49b0f1dda..b6f97280a 100644 --- a/roles/openshift_default_storage_class/tasks/main.yml +++ b/roles/openshift_default_storage_class/tasks/main.yml @@ -1,18 +1,15 @@ --- # Install default storage classes in GCE & AWS +- name: storageclass template + template: + src: storageclass.j2 + dest: /tmp/storageclass + run_once: true + - name: Ensure storageclass object oc_obj: kind: storageclass name: "{{ openshift_storageclass_name }}" - content: - path: /tmp/openshift_storageclass - data: - kind: StorageClass - apiVersion: storage.k8s.io/v1 - metadata: - name: "{{ openshift_storageclass_name }}" - annotations: - storageclass.beta.kubernetes.io/is-default-class: "true" - provisioner: "{{ openshift_storageclass_provisioner }}" - parameters: "{{ openshift_storageclass_parameters }}" + files: + - /tmp/storageclass run_once: true |