Browse Source

Merge pull request #8501 from mgugino-upstream-stage/fix-master-scaleup-atomic-undef

Fix master scaleup play init_fact hosts
OpenShift Merge Robot 6 years ago
parent
commit
7a6a92e348
1 changed files with 3 additions and 2 deletions
  1. 3 2
      playbooks/openshift-master/scaleup.yml

+ 3 - 2
playbooks/openshift-master/scaleup.yml

@@ -33,8 +33,9 @@
   vars:
     l_scale_up_hosts: "oo_nodes_to_config:oo_masters_to_config"
     l_base_packages_hosts: "oo_nodes_to_config:oo_masters_to_config"
-    l_init_fact_hosts: "oo_masters_to_config:oo_etcd_to_config:oo_lb_to_config:oo_nodes_to_config"
-    l_sanity_check_hosts: "{{ groups['oo_nodes_to_config'] | union(groups['oo_masters_to_config']) }}"
+    # oo_masters contains both existing and new masters; oo_masters_to_config just new.
+    l_init_fact_hosts: "oo_masters:oo_etcd_to_config:oo_lb_to_config:oo_nodes_to_config"
+    l_sanity_check_hosts: "{{ groups['oo_nodes_to_config'] | union(groups['oo_masters']) }}"
 
 - import_playbook: ../init/version.yml
   vars: