Add playbooks to start/stop all of zuul
These will start and hard-stop all zuul components. Change-Id: I2e52560115d9ee2560d027c4a4d95916eeead00d
This commit is contained in:
parent
01933b3a61
commit
302c7eef8e
28
start_all_zuul.yaml
Normal file
28
start_all_zuul.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
- hosts: 'zuul.openstack.org'
|
||||||
|
any_errors_fatal: true
|
||||||
|
tasks:
|
||||||
|
- name: Start Zuul
|
||||||
|
service:
|
||||||
|
name: zuul
|
||||||
|
state: started
|
||||||
|
become: true
|
||||||
|
become_user: root
|
||||||
|
|
||||||
|
- hosts: 'zlstatic0*.openstack.org:zl0*.openstack.org'
|
||||||
|
tasks:
|
||||||
|
- name: Start zuul-launcher
|
||||||
|
service:
|
||||||
|
name: zuul-launcher
|
||||||
|
state: started
|
||||||
|
become: true
|
||||||
|
become_user: root
|
||||||
|
|
||||||
|
- hosts: 'zm0*.openstack.org'
|
||||||
|
tasks:
|
||||||
|
- name: Start zuul-merger
|
||||||
|
service:
|
||||||
|
name: zuul-merger
|
||||||
|
state: started
|
||||||
|
become: true
|
||||||
|
become_user: root
|
42
stop_all_zuul.yaml
Normal file
42
stop_all_zuul.yaml
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
- hosts: 'zuul.openstack.org'
|
||||||
|
any_errors_fatal: true
|
||||||
|
tasks:
|
||||||
|
- name: Stop Zuul
|
||||||
|
service:
|
||||||
|
name: zuul
|
||||||
|
state: stopped
|
||||||
|
become: true
|
||||||
|
become_user: root
|
||||||
|
- name: Wait for (3h10m) to stop zuul
|
||||||
|
wait_for:
|
||||||
|
path: /var/run/zuul/zuul.pid
|
||||||
|
state: absent
|
||||||
|
timeout: 11400
|
||||||
|
|
||||||
|
- hosts: 'zlstatic0*.openstack.org:zl0*.openstack.org'
|
||||||
|
tasks:
|
||||||
|
- name: Hard stop zuul-launcher
|
||||||
|
shell: 'zuul-launcher stop'
|
||||||
|
become: true
|
||||||
|
become_user: zuul
|
||||||
|
|
||||||
|
- name: Wait for (3h10m) to stop zuul-launcher
|
||||||
|
wait_for:
|
||||||
|
path: /var/run/zuul-launcher/zuul-launcher.pid
|
||||||
|
state: absent
|
||||||
|
timeout: 11400
|
||||||
|
|
||||||
|
- hosts: 'zm0*.openstack.org'
|
||||||
|
tasks:
|
||||||
|
- name: Hard stop zuul-merger
|
||||||
|
service:
|
||||||
|
name: zuul-merger
|
||||||
|
state: stopped
|
||||||
|
become: true
|
||||||
|
become_user: root
|
||||||
|
- name: Wait for (3h10m) to stop zuul-merger
|
||||||
|
wait_for:
|
||||||
|
path: /var/run/zuul-merger/zuul-merger.pid
|
||||||
|
state: absent
|
||||||
|
timeout: 11400
|
Loading…
x
Reference in New Issue
Block a user