summaryrefslogtreecommitdiffstats
path: root/roles/openshift_hosted
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-03-11 19:24:51 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-03-11 19:24:51 +0100
commit22d3a96deaf74b7aa9aa021a73ef39e2b4da3378 (patch)
treeaed221ebb63cc9e13b54cb1a75a388e6fd7283d7 /roles/openshift_hosted
parent9c475cff32d20ec969205ea6eb1c1e6053dcdd6f (diff)
downloadopenshift-22d3a96deaf74b7aa9aa021a73ef39e2b4da3378.tar.gz
openshift-22d3a96deaf74b7aa9aa021a73ef39e2b4da3378.tar.bz2
openshift-22d3a96deaf74b7aa9aa021a73ef39e2b4da3378.tar.xz
openshift-22d3a96deaf74b7aa9aa021a73ef39e2b4da3378.zip
Introduce openshift_hosted_registry_storage_class configuration variable to enable dynamicly provisioned GlusterFS volume for hosted registry
Diffstat (limited to 'roles/openshift_hosted')
-rw-r--r--roles/openshift_hosted/tasks/registry.yml1
-rw-r--r--roles/openshift_hosted/tasks/registry_storage.yml1
2 files changed, 2 insertions, 0 deletions
diff --git a/roles/openshift_hosted/tasks/registry.yml b/roles/openshift_hosted/tasks/registry.yml
index bc4d81eb7..472009536 100644
--- a/roles/openshift_hosted/tasks/registry.yml
+++ b/roles/openshift_hosted/tasks/registry.yml
@@ -112,6 +112,7 @@
when:
- openshift_hosted_registry_storage_glusterfs_ips|length > 0
- openshift_hosted_registry_storage_kind | default(none) in ['glusterfs']
+ - openshift_hosted_registry_storage_class is not defined
- name: Create OpenShift registry
oc_adm_registry:
diff --git a/roles/openshift_hosted/tasks/registry_storage.yml b/roles/openshift_hosted/tasks/registry_storage.yml
index aa66a7867..e1b8c4e5e 100644
--- a/roles/openshift_hosted/tasks/registry_storage.yml
+++ b/roles/openshift_hosted/tasks/registry_storage.yml
@@ -2,3 +2,4 @@
- include_tasks: storage/glusterfs.yml
when:
- openshift_hosted_registry_storage_kind | default(none) == 'glusterfs' or openshift_hosted_registry_storage_glusterfs_swap
+ - openshift_hosted_registry_storage_class is not defined