Kaynağa Gözat

Labeling nodes only

Gan Huang 8 yıl önce
ebeveyn
işleme
2247149ba4
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      utils/src/ooinstall/openshift_ansible.py

+ 2 - 1
utils/src/ooinstall/openshift_ansible.py

@@ -190,7 +190,8 @@ def write_host(host, role, inventory, schedulable=None):
         for variable, value in host.other_variables.iteritems():
             facts += " {}={}".format(variable, value)
     if host.node_labels:
-        facts += ' openshift_node_labels="{}"'.format(host.node_labels)
+        if role == 'node':
+            facts += ' openshift_node_labels="{}"'.format(host.node_labels)
 
 
     # Distinguish between three states, no schedulability specified (use default),