File tree Expand file tree Collapse file tree 4 files changed +6
-1
lines changed Expand file tree Collapse file tree 4 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 7
7
- ocp-config
8
8
vars :
9
9
master_count : " {{ groups['masters'] | length }}"
10
+ worker_count : " {{ groups['workers'] | default([]) | length }}"
10
11
11
12
- name : Check and configure bootstrap node
12
13
hosts : bootstrap
47
48
- ocp-install
48
49
- ocp-customization
49
50
vars :
50
- worker_count : " {{ groups['workers'] | length }}"
51
+ worker_count : " {{ groups['workers'] | default([]) | length }}"
51
52
52
53
- name : OCP post-install HA
53
54
hosts : bastion[1:]
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ Role Variables
21
21
| log_level | no | info | Option --log-level in openshift-install cmd |
22
22
| release_image_override | no | "" | OCP image overide variable |
23
23
| master_count | yes | | Number of master nodes |
24
+ | worker_count | yes | | Number of worker nodes |
24
25
| setup_squid_proxy | no | false | Flag for setting up squid proxy server on bastion node |
25
26
| proxy_url | no | "" | Proxy url eg: http://[ user: passwd @] server: port (NA when setup_squid_proxy: true)|
26
27
| no_proxy | no | "" | Comma seperated string of domains/cidr to exclude proxy |
@@ -59,6 +60,7 @@ Example Playbook
59
60
- ocp-config
60
61
vars:
61
62
master_count: "{{ groups['masters'] | length }}"
63
+ worker_count: "{{ groups['workers'] | default([]) | length }}"
62
64
63
65
License
64
66
-------
Original file line number Diff line number Diff line change 68
68
regexp : ' ^(.*)mastersSchedulable: true'
69
69
line : ' \1mastersSchedulable: False'
70
70
backrefs : yes
71
+ when : worker_count|int > 0
71
72
72
73
- name : Copy machineconfig files generated from helpernode
73
74
copy :
Original file line number Diff line number Diff line change 18
18
until : lookup('pipe','oc get nodes | grep -w worker | grep -w Ready | wc -l') == worker_count
19
19
retries : 30
20
20
delay : 60
21
+ when : worker_count|int > 0
21
22
22
23
- name : Wait for install-complete
23
24
shell : " openshift-install wait-for install-complete --log-level {{ log_level }}"
You can’t perform that action at this time.
0 commit comments