summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose A. Rivera <jarrpa@redhat.com>2017-06-14 10:39:08 -0500
committerJose A. Rivera <jarrpa@redhat.com>2017-06-16 11:29:15 -0500
commit5528b345ce543dcfdc1d827cba65110149853994 (patch)
tree9513879602faf5e7c9c9bb0f94beaf6344b27bbf
parentcf81c53e8b747603ba6599f8c9fbdf50feff4c88 (diff)
downloadopenshift-5528b345ce543dcfdc1d827cba65110149853994.tar.gz
openshift-5528b345ce543dcfdc1d827cba65110149853994.tar.bz2
openshift-5528b345ce543dcfdc1d827cba65110149853994.tar.xz
openshift-5528b345ce543dcfdc1d827cba65110149853994.zip
registry: mount GlusterFS storage volume from correct host
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
-rw-r--r--roles/openshift_hosted/tasks/registry/storage/glusterfs.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_hosted/tasks/registry/storage/glusterfs.yml b/roles/openshift_hosted/tasks/registry/storage/glusterfs.yml
index e6bb196b8..c504bfb80 100644
--- a/roles/openshift_hosted/tasks/registry/storage/glusterfs.yml
+++ b/roles/openshift_hosted/tasks/registry/storage/glusterfs.yml
@@ -35,7 +35,7 @@
mount:
state: mounted
fstype: glusterfs
- src: "{{ groups.oo_glusterfs_to_config[0] }}:/{{ openshift.hosted.registry.storage.glusterfs.path }}"
+ src: "{% if 'glusterfs_registry' in groups %}{{ groups.glusterfs_registry[0] }}{% else %}{{ groups.glusterfs[0] }}{% endif %}:/{{ openshift.hosted.registry.storage.glusterfs.path }}"
name: "{{ mktemp.stdout }}"
- name: Set registry volume permissions