summaryrefslogtreecommitdiffstats
path: root/roles/openshift_manage_node
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2016-11-22 13:02:43 -0500
committerAndrew Butcher <abutcher@redhat.com>2016-11-22 13:34:04 -0500
commit1f9259a0089fa4f1a6895ea69b7bc3a5e3b862b1 (patch)
tree2ff6f51d4634a214fc23d654b08119dc316ad190 /roles/openshift_manage_node
parent2969e4ede4e6337df0f4f48520b4c38b99d4eb1a (diff)
downloadopenshift-1f9259a0089fa4f1a6895ea69b7bc3a5e3b862b1.tar.gz
openshift-1f9259a0089fa4f1a6895ea69b7bc3a5e3b862b1.tar.bz2
openshift-1f9259a0089fa4f1a6895ea69b7bc3a5e3b862b1.tar.xz
openshift-1f9259a0089fa4f1a6895ea69b7bc3a5e3b862b1.zip
Reference master binaries when delegating from node hosts which may be containerized.
Diffstat (limited to 'roles/openshift_manage_node')
-rw-r--r--roles/openshift_manage_node/tasks/main.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/openshift_manage_node/tasks/main.yml b/roles/openshift_manage_node/tasks/main.yml
index 88cdd2d89..c06758833 100644
--- a/roles/openshift_manage_node/tasks/main.yml
+++ b/roles/openshift_manage_node/tasks/main.yml
@@ -47,7 +47,7 @@
- name: Wait for Node Registration
command: >
- {{ openshift.common.client_binary }} get node {{ openshift.node.nodename }}
+ {{ hostvars[openshift_master_host].openshift.common.client_binary }} get node {{ openshift.node.nodename }}
--config={{ openshift_manage_node_kubeconfig }}
-n default
register: omd_get_node
@@ -60,7 +60,7 @@
- name: Set node schedulability
command: >
- {{ openshift.common.client_binary }} adm manage-node {{ openshift.node.nodename }} --schedulable={{ 'true' if openshift.node.schedulable | bool else 'false' }}
+ {{ hostvars[openshift_master_host].openshift.common.client_binary }} adm manage-node {{ openshift.node.nodename }} --schedulable={{ 'true' if openshift.node.schedulable | bool else 'false' }}
--config={{ openshift_manage_node_kubeconfig }}
-n default
when: "'nodename' in openshift.node"
@@ -68,7 +68,7 @@
- name: Label nodes
command: >
- {{ openshift.common.client_binary }} label --overwrite node {{ openshift.node.nodename }} {{ openshift.node.labels | oo_combine_dict }}
+ {{ hostvars[openshift_master_host].openshift.common.client_binary }} label --overwrite node {{ openshift.node.nodename }} {{ openshift.node.labels | oo_combine_dict }}
--config={{ openshift_manage_node_kubeconfig }}
-n default
when: "'nodename' in openshift.node and 'labels' in openshift.node and openshift.node.labels != {}"