summaryrefslogtreecommitdiffstats
path: root/utils/src
diff options
context:
space:
mode:
authorJason DeTiberus <detiber@gmail.com>2016-09-30 14:54:16 -0400
committerGitHub <noreply@github.com>2016-09-30 14:54:16 -0400
commit2128e5cfd89de206004e33d58ecfca594c87c3d7 (patch)
tree7092c5972c4a8af80e71be21ec7a7a1a5ce552c7 /utils/src
parent5746c82c54291aca3f50ee948b49a63d9ae4445b (diff)
parent4e164964947ae9e57baf35ce24fa3455b37cdf0a (diff)
downloadopenshift-2128e5cfd89de206004e33d58ecfca594c87c3d7.tar.gz
openshift-2128e5cfd89de206004e33d58ecfca594c87c3d7.tar.bz2
openshift-2128e5cfd89de206004e33d58ecfca594c87c3d7.tar.xz
openshift-2128e5cfd89de206004e33d58ecfca594c87c3d7.zip
Merge pull request #2535 from smunilla/BZ1368414_fix
Fix openshift_node_labels in generated hosts file
Diffstat (limited to 'utils/src')
-rw-r--r--utils/src/ooinstall/openshift_ansible.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/src/ooinstall/openshift_ansible.py b/utils/src/ooinstall/openshift_ansible.py
index bd0d96d09..80a79a6d2 100644
--- a/utils/src/ooinstall/openshift_ansible.py
+++ b/utils/src/ooinstall/openshift_ansible.py
@@ -36,7 +36,6 @@ HOST_VARIABLES_MAP = {
'public_ip': 'openshift_public_ip',
'hostname': 'openshift_hostname',
'public_hostname': 'openshift_public_hostname',
- 'node_labels': 'openshift_node_labels',
'containerized': 'containerized',
}
@@ -200,6 +199,9 @@ def write_host(host, role, inventory, schedulable=None):
for variable, value in host.other_variables.iteritems():
facts += " {}={}".format(variable, value)
+ if host.node_labels and role == 'node':
+ facts += ' openshift_node_labels="{}"'.format(host.node_labels)
+
# Distinguish between three states, no schedulability specified (use default),
# explicitly set to True, or explicitly set to False:
if role != 'node' or schedulable is None: