|
1 | 1 | ---
|
2 |
| -- name: Include tasks/project-dir.yml |
3 |
| - ansible.builtin.include_tasks: tasks/project-dir.yml |
| 2 | +- name: Include project-dir.yml |
| 3 | + ansible.builtin.include_tasks: project-dir.yml |
4 | 4 | tags:
|
5 | 5 | - always
|
6 | 6 |
|
|
9 | 9 | tags:
|
10 | 10 | - always
|
11 | 11 |
|
12 |
| -- name: Include tasks/check-up-to-date.yml |
13 |
| - ansible.builtin.include_tasks: tasks/check-up-to-date.yml |
| 12 | +- name: Include check-up-to-date.yml |
| 13 | + ansible.builtin.include_tasks: check-up-to-date.yml |
14 | 14 | tags:
|
15 | 15 | - always
|
16 | 16 |
|
17 | 17 | - name: Include deployment facts
|
18 |
| - ansible.builtin.include_tasks: tasks/set-deployment-facts.yml |
| 18 | + ansible.builtin.include_tasks: set-deployment-facts.yml |
19 | 19 | tags:
|
20 | 20 | - always
|
21 | 21 |
|
22 |
| -- name: Include tasks/set-facts.yml |
23 |
| - ansible.builtin.include_tasks: tasks/set-facts.yml |
| 22 | +- name: Include set-facts.yml |
| 23 | + ansible.builtin.include_tasks: set-facts.yml |
24 | 24 | tags:
|
25 | 25 | - always
|
26 | 26 |
|
|
106 | 106 | changed_when: true
|
107 | 107 |
|
108 | 108 | - name: Deploy secrets
|
109 |
| - ansible.builtin.include_tasks: tasks/k8s.yml |
| 109 | + ansible.builtin.include_tasks: k8s.yml |
110 | 110 | loop:
|
111 | 111 | - "{{ lookup('template', '{{ project_dir }}/openshift/secret-packit-ssh.yml.j2') }}"
|
112 | 112 | - "{{ lookup('template', '{{ project_dir }}/openshift/secret-packit-secrets.yml.j2') }}"
|
|
135 | 135 | changed_when: "'added:' in rolebinding.stdout"
|
136 | 136 |
|
137 | 137 | - name: Deploy postgres
|
138 |
| - ansible.builtin.include_tasks: tasks/k8s.yml |
| 138 | + ansible.builtin.include_tasks: k8s.yml |
139 | 139 | loop:
|
140 | 140 | - "{{ lookup('template', '{{ project_dir }}/openshift/postgres.yml.j2') }}"
|
141 | 141 | tags:
|
142 | 142 | - postgres
|
143 | 143 |
|
144 | 144 | - name: Deploy key-value database ({{ kv_database }})
|
145 |
| - ansible.builtin.include_tasks: tasks/k8s.yml |
| 145 | + ansible.builtin.include_tasks: k8s.yml |
146 | 146 | loop:
|
147 | 147 | - "{{ lookup('file', '{{ project_dir }}/openshift/configmap-redis_like_config.yml') }}"
|
148 | 148 | - "{{ lookup('template', '{{ project_dir }}/openshift/{{ kv_database }}.yml.j2') }}"
|
|
151 | 151 | - kv_database
|
152 | 152 |
|
153 | 153 | - name: Deploy fluentd image stream and config
|
154 |
| - ansible.builtin.include_tasks: tasks/k8s.yml |
| 154 | + ansible.builtin.include_tasks: k8s.yml |
155 | 155 | loop:
|
156 | 156 | - "{{ lookup('template', '{{ project_dir }}/openshift/fluentd.yml.j2') }}"
|
157 | 157 | tags:
|
|
160 | 160 | when: with_fluentd_sidecar
|
161 | 161 |
|
162 | 162 | - name: Deploy packit-service
|
163 |
| - ansible.builtin.include_tasks: tasks/k8s.yml |
| 163 | + ansible.builtin.include_tasks: k8s.yml |
164 | 164 | loop:
|
165 | 165 | - "{{ lookup('template', '{{ project_dir }}/openshift/packit-service.yml.j2') }}"
|
166 | 166 | tags:
|
|
189 | 189 | worker_requests_cpu: "100m"
|
190 | 190 | worker_limits_memory: "1024Mi"
|
191 | 191 | worker_limits_cpu: "400m"
|
192 |
| - ansible.builtin.include_tasks: tasks/k8s.yml |
| 192 | + ansible.builtin.include_tasks: k8s.yml |
193 | 193 | loop:
|
194 | 194 | - "{{ lookup('template', '{{ project_dir }}/openshift/packit-worker.yml.j2') }}"
|
195 | 195 | tags:
|
|
207 | 207 | worker_requests_cpu: "80m"
|
208 | 208 | worker_limits_memory: "640Mi"
|
209 | 209 | worker_limits_cpu: "700m"
|
210 |
| - ansible.builtin.include_tasks: tasks/k8s.yml |
| 210 | + ansible.builtin.include_tasks: k8s.yml |
211 | 211 | loop:
|
212 | 212 | - "{{ lookup('template', '{{ project_dir }}/openshift/packit-worker.yml.j2') }}"
|
213 | 213 | tags:
|
|
239 | 239 | worker_requests_cpu: "100m"
|
240 | 240 | worker_limits_memory: "2048Mi"
|
241 | 241 | worker_limits_cpu: "600m"
|
242 |
| - ansible.builtin.include_tasks: tasks/k8s.yml |
| 242 | + ansible.builtin.include_tasks: k8s.yml |
243 | 243 | loop:
|
244 | 244 | - "{{ lookup('template', '{{ project_dir }}/openshift/packit-worker.yml.j2') }}"
|
245 | 245 | tags:
|
246 | 246 | - packit-worker
|
247 | 247 | when: workers_long_running > 0
|
248 | 248 |
|
249 | 249 | - name: Deploy packit-service-beat
|
250 |
| - ansible.builtin.include_tasks: tasks/k8s.yml |
| 250 | + ansible.builtin.include_tasks: k8s.yml |
251 | 251 | loop:
|
252 | 252 | - "{{ lookup('template', '{{ project_dir }}/openshift/packit-service-beat.yml.j2') }}"
|
253 | 253 | when: with_beat
|
254 | 254 | tags:
|
255 | 255 | - packit-service-beat
|
256 | 256 |
|
257 | 257 | - name: Deploy dashboard
|
258 |
| - ansible.builtin.include_tasks: tasks/k8s.yml |
| 258 | + ansible.builtin.include_tasks: k8s.yml |
259 | 259 | loop:
|
260 | 260 | - "{{ lookup('template', '{{ project_dir }}/openshift/dashboard.yml.j2') }}"
|
261 | 261 | when: with_dashboard
|
|
279 | 279 | - name: Deploy redis-commander
|
280 | 280 | vars:
|
281 | 281 | k8s_apply: true
|
282 |
| - ansible.builtin.include_tasks: tasks/k8s.yml |
| 282 | + ansible.builtin.include_tasks: k8s.yml |
283 | 283 | loop:
|
284 | 284 | - "{{ lookup('template', '{{ project_dir }}/openshift/redis-commander.yml.j2') }}"
|
285 | 285 | when: with_redis_commander
|
|
288 | 288 | register: redis_commander
|
289 | 289 |
|
290 | 290 | - name: Deploy flower
|
291 |
| - ansible.builtin.include_tasks: tasks/k8s.yml |
| 291 | + ansible.builtin.include_tasks: k8s.yml |
292 | 292 | loop:
|
293 | 293 | - "{{ lookup('template', '{{ project_dir }}/openshift/flower.yml.j2') }}"
|
294 | 294 | when: with_flower
|
295 | 295 | tags:
|
296 | 296 | - flower
|
297 | 297 |
|
298 | 298 | - name: Deploy packit-service-fedmsg
|
299 |
| - ansible.builtin.include_tasks: tasks/k8s.yml |
| 299 | + ansible.builtin.include_tasks: k8s.yml |
300 | 300 | loop:
|
301 | 301 | - "{{ lookup('template', '{{ project_dir }}/openshift/packit-service-fedmsg.yml.j2') }}"
|
302 | 302 | tags:
|
|
329 | 329 | when: with_tokman
|
330 | 330 |
|
331 | 331 | - name: Deploy aggregating pushgateway
|
332 |
| - ansible.builtin.include_tasks: tasks/k8s.yml |
| 332 | + ansible.builtin.include_tasks: k8s.yml |
333 | 333 | loop:
|
334 | 334 | - "{{ lookup('template', '{{ project_dir }}/openshift/pushgateway.yml.j2') }}"
|
335 | 335 | tags:
|
|
348 | 348 | password: "{{ vault.flower.basic_auth | regex_replace('flower-boss:', '') }}"
|
349 | 349 | mode: 0640
|
350 | 350 | - name: Deploy flower-htpasswd secret
|
351 |
| - # Don't use tasks/k8s.yml here because the loop item is always evaluated |
| 351 | + # Don't use k8s.yml here because the loop item is always evaluated |
352 | 352 | k8s:
|
353 | 353 | namespace: "{{ project }}"
|
354 | 354 | resource_definition: "{{ lookup('template', '{{ project_dir }}/openshift/secret-flower-htpasswd.yml.j2') }}"
|
|
373 | 373 | - name: Wait for worker-0 to be running
|
374 | 374 | vars:
|
375 | 375 | pod_name: packit-worker-0
|
376 |
| - ansible.builtin.include_tasks: tasks/wait_for_pod.yml |
| 376 | + ansible.builtin.include_tasks: wait_for_pod.yml |
377 | 377 | when: workers_all_tasks > 0
|
378 | 378 |
|
379 | 379 | - name: Wait for worker-short-running-0 to be running
|
380 | 380 | vars:
|
381 | 381 | pod_name: packit-worker-short-running-0
|
382 |
| - ansible.builtin.include_tasks: tasks/wait_for_pod.yml |
| 382 | + ansible.builtin.include_tasks: wait_for_pod.yml |
383 | 383 | when: workers_short_running > 0
|
384 | 384 |
|
385 | 385 | - name: Wait for worker-long-running-0 to be running
|
386 | 386 | vars:
|
387 | 387 | pod_name: packit-worker-long-running-0
|
388 |
| - ansible.builtin.include_tasks: tasks/wait_for_pod.yml |
| 388 | + ansible.builtin.include_tasks: wait_for_pod.yml |
389 | 389 | when: workers_long_running > 0
|
390 | 390 |
|
391 | 391 | - name: Select project to check status on command line
|
|
0 commit comments