system-config/playbooks/zuul_stop.yaml
James E. Blair cc74e674db Limit zuul stop/start playbooks to zuul02
Rather than restarting the whole scheduler group, just restart
zuul02, which is our only production scheduler.  That will allow us
to boot zuul01 as a secondary scheduler and manually add/remove it
for testing.

Once we can reliably run two schedulers, we can revert this change.

Change-Id: I5518ea1d3a6a1d48460b0436d4d1eaf9d52b7ddb
2021-10-27 15:00:03 -07:00

24 lines
473 B
YAML

# Run this with "-f 20"
- hosts: 'zuul02.opendev.org:!disabled'
any_errors_fatal: true
tasks:
- include_role:
name: zuul-scheduler
tasks_from: stop
- include_role:
name: zuul-web
tasks_from: stop
- hosts: 'zuul-merger:!disabled'
tasks:
- include_role:
name: zuul-merger
tasks_from: stop
- hosts: 'zuul-executor:!disabled'
tasks:
- include_role:
name: zuul-executor
tasks_from: stop