summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorJose A. Rivera <jarrpa@redhat.com>2017-05-11 21:46:50 -0500
committerJose A. Rivera <jarrpa@redhat.com>2017-06-13 13:10:23 -0500
commitfb96b04bdb1b21562bec5a17dda753f93a4a7877 (patch)
tree7ce7bdb2e2b3ff3179bb51d1fd3bafc203109036 /roles
parent06f01c77d4a2901d637201ded3db3ff8de6681c6 (diff)
downloadopenshift-fb96b04bdb1b21562bec5a17dda753f93a4a7877.tar.gz
openshift-fb96b04bdb1b21562bec5a17dda753f93a4a7877.tar.bz2
openshift-fb96b04bdb1b21562bec5a17dda753f93a4a7877.tar.xz
openshift-fb96b04bdb1b21562bec5a17dda753f93a4a7877.zip
GlusterFS: Label on Openshift node name
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_storage_glusterfs/tasks/glusterfs_deploy.yml4
1 files changed, 1 insertions, 3 deletions
diff --git a/roles/openshift_storage_glusterfs/tasks/glusterfs_deploy.yml b/roles/openshift_storage_glusterfs/tasks/glusterfs_deploy.yml
index 782978710..1b3814b0b 100644
--- a/roles/openshift_storage_glusterfs/tasks/glusterfs_deploy.yml
+++ b/roles/openshift_storage_glusterfs/tasks/glusterfs_deploy.yml
@@ -61,13 +61,11 @@
- name: Label GlusterFS nodes
oc_label:
- name: "{{ glusterfs_host }}"
+ name: "{{ hostvars[item].openshift.common.hostname }}"
kind: node
state: add
labels: "{{ glusterfs_nodeselector | oo_dict_to_list_of_dict }}"
with_items: "{{ glusterfs_nodes | default([]) }}"
- loop_control:
- loop_var: glusterfs_host
- name: Copy GlusterFS DaemonSet template
copy: