diff options
author | Jose A. Rivera <jarrpa@redhat.com> | 2017-07-14 10:37:11 -0500 |
---|---|---|
committer | Jose A. Rivera <jarrpa@redhat.com> | 2017-07-14 10:37:29 -0500 |
commit | 85093de27fb6ad2faf57c0f3c5e5befcec0d0625 (patch) | |
tree | a908abcf8399aba976e230db3c55e7406a13bc37 /roles | |
parent | 40f72f4b0644ae13c4f17f5c45cc0617c43fc733 (diff) | |
download | openshift-85093de27fb6ad2faf57c0f3c5e5befcec0d0625.tar.gz openshift-85093de27fb6ad2faf57c0f3c5e5befcec0d0625.tar.bz2 openshift-85093de27fb6ad2faf57c0f3c5e5befcec0d0625.tar.xz openshift-85093de27fb6ad2faf57c0f3c5e5befcec0d0625.zip |
hosted registry: Use proper node name in GlusterFS storage setup
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Diffstat (limited to 'roles')
-rw-r--r-- | roles/openshift_hosted/tasks/registry/storage/glusterfs.yml | 2 |
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 c504bfb80..c2954fde1 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: "{% if 'glusterfs_registry' in groups %}{{ groups.glusterfs_registry[0] }}{% else %}{{ groups.glusterfs[0] }}{% endif %}:/{{ openshift.hosted.registry.storage.glusterfs.path }}" + src: "{% if 'glusterfs_registry' in groups %}{% set node = groups.glusterfs_registry[0] %}{% else %}{% set node = groups.glusterfs[0] %}{% endif %}{% if 'glusterfs_hostname' in hostvars[node] %}{{ hostvars[node].glusterfs_hostname }}{% elif 'openshift' in hostvars[node] %}{{ hostvars[node].openshift.node.nodename }}{% else %}{{ node }}{% endif %}:/{{ openshift.hosted.registry.storage.glusterfs.path }}" name: "{{ mktemp.stdout }}" - name: Set registry volume permissions |