瀏覽代碼

Update master facts prior to upgrading incase facts are missing.

Andrew Butcher 9 年之前
父節點
當前提交
01da79a943
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      playbooks/common/openshift-cluster/upgrades/v3_0_to_v3_1/upgrade.yml

+ 10 - 0
playbooks/common/openshift-cluster/upgrades/v3_0_to_v3_1/upgrade.yml

@@ -161,6 +161,16 @@
       local_facts:
       local_facts:
         deployment_type: "{{ deployment_type }}"
         deployment_type: "{{ deployment_type }}"
 
 
+- name: Update master facts
+  hosts: oo_masters_to_config
+  roles:
+  - openshift_facts
+  post_tasks:
+  - openshift_facts:
+      role: master
+      local_facts:
+        cluster_method: "{{ openshift_master_cluster_method | default(None) }}"
+
 - name: Upgrade master packages and configuration
 - name: Upgrade master packages and configuration
   hosts: oo_masters_to_config
   hosts: oo_masters_to_config
   vars:
   vars: