-
Notifications
You must be signed in to change notification settings - Fork 2
/
upgrade_cluster.yaml
58 lines (53 loc) · 1.72 KB
/
upgrade_cluster.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
- name: Cluster upgrade preflight
hosts: utility
gather_facts: true
any_errors_fatal: true
vars:
target_node_groups: []
tasks:
- name: include cluster preflight tasks
ansible.builtin.include_tasks: "include/upgrade/cluster_preflight.yaml"
when: fw_upgrade_only != true
- name: Node upgrade preflight
hosts: openshift_nodes
gather_facts: false
any_errors_fatal: true
vars:
target_node_groups: []
tasks:
- name: Gather node information
ansible.builtin.include_tasks: "include/gather_{{pm_type}}_facts.yaml"
when: node_group is defined and node_group in target_node_groups
- name: include node preflight tasks
ansible.builtin.include_tasks: "include/upgrade/node_preflight.yaml"
when: node_group is defined and node_group in target_node_groups
- name: Control plane upgrade
hosts: utility
gather_facts: false
vars:
target_node_groups: []
tasks:
- name: include control plane upgrade tasks
ansible.builtin.include_tasks: "include/upgrade/control_plane.yaml"
when: fw_upgrade_only != true and control_plane_upgrade_required == true
- name: Loop over node groups
hosts: openshift_nodes
gather_facts: false
serial: "{{ node_update_serial|default(32) }}"
vars:
target_node_groups: []
tasks:
- name: include node group update tasks
ansible.builtin.include_tasks: "include/upgrade/_node_upgrade_loop.yaml"
loop_control:
loop_var: active_node_group
loop: "{{ target_node_groups }}"
- name: Cluster upgrade cleanup
hosts: utility
gather_facts: false
vars:
target_node_groups: []
tasks:
- name: include cluster cleanup tasks
ansible.builtin.include_tasks: "include/upgrade/cluster_cleanup.yaml"