system-config/playbooks/zuul_rolling_restart.yaml
James E. Blair 03a0bef7b6 Add the start of a Zuul rolling restart playbook
This handles rolling the mergers and executors, but not yet
the schedulers.

Also, it does the executors in complete batches of 6, but could be
improved to stop 6 and then do each of the next as the first ones
complete.

Change-Id: I2dca104194c2f129b68dcef7721d7d08cb987c46
2022-05-25 09:48:28 -07:00

24 lines
465 B
YAML

# Run this with "-f 20"
- hosts: 'zuul-merger:!disabled'
tasks:
- include_role:
name: zuul-merger
tasks_from: graceful
- hosts: 'zuul-executor:!disabled'
serial: 6
tasks:
- include_role:
name: zuul-executor
tasks_from: graceful
- include_role:
name: zuul-executor
tasks_from: start
- hosts: 'zuul-merger:!disabled'
tasks:
- include_role:
name: zuul-merger
tasks_from: start