summaryrefslogtreecommitdiffstats
path: root/roles/openshift_persistent_volumes/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_persistent_volumes/tasks/main.yml')
-rw-r--r--roles/openshift_persistent_volumes/tasks/main.yml16
1 files changed, 15 insertions, 1 deletions
diff --git a/roles/openshift_persistent_volumes/tasks/main.yml b/roles/openshift_persistent_volumes/tasks/main.yml
index b1d9c8cca..1c32a6743 100644
--- a/roles/openshift_persistent_volumes/tasks/main.yml
+++ b/roles/openshift_persistent_volumes/tasks/main.yml
@@ -23,7 +23,21 @@
- name: "{{ openshift_hosted_registry_storage_volume_name }}-glusterfs-claim"
capacity: "{{ openshift_hosted_registry_storage_volume_size }}"
access_modes: "{{ openshift_hosted_registry_storage_access_modes }}"
- when: openshift_hosted_registry_storage_glusterfs_swap | default(False)
+ when:
+ - openshift_hosted_registry_storage_glusterfs_swap | default(False)
+ - openshift_hosted_registry_storage_class is not defined
+
+
+- set_fact:
+ glusterfs_pv: []
+ glusterfs_pvc:
+ - name: "{{ openshift_hosted_registry_storage_volume_name }}-claim"
+ storageclass: "{{ openshift_hosted_registry_storage_class }}"
+ capacity: "{{ openshift_hosted_registry_storage_volume_size }}"
+ access_modes: "{{ openshift_hosted_registry_storage_access_modes }}"
+ when:
+ - openshift_hosted_registry_storage_class is defined
+
- name: create standard pv and pvc lists
# generate_pv_pvcs_list is a custom action module defined in