Add playbooks to start/stop/restart zuul

Remove some old ones which were in the wrong place and out of date.

Change-Id: I4303e66edc7d3dc00c455a0990b0b3be0f5f91a6
Depends-On: https://review.openstack.org/586699
changes/06/586706/1
James E. Blair 5 years ago
parent e17e3a662a
commit 3e1666687c

@ -0,0 +1,105 @@
# Run this with "-f 20"
- hosts: 'zuul01.openstack.org'
any_errors_fatal: true
tasks:
- name: Stop Zuul Scheduler
service:
name: zuul-scheduler
state: stopped
become: true
become_user: root
- name: Stop Zuul Web
service:
name: zuul-web
state: stopped
become: true
become_user: root
- name: Stop Zuul Finger Gateway
service:
name: zuul-fingergw
state: stopped
become: true
become_user: root
- name: Wait for (3h10m) to stop Zuul Scheduler
wait_for:
path: /var/run/zuul/scheduler.pid
state: absent
timeout: 11400
- name: Wait for (3h10m) to stop Zuul Web
wait_for:
path: /var/run/zuul/web.pid
state: absent
timeout: 11400
- name: Wait for (3h10m) to stop Zuul Finger Gateway
wait_for:
path: /var/run/zuul/fingergw.pid
state: absent
timeout: 11400
- hosts: 'zm*.openstack.org'
tasks:
- name: Stop Zuul Mergers
service:
name: zuul-merger
state: stopped
become: true
become_user: root
- hosts: 'ze*.openstack.org'
tasks:
- name: Stop Zuul Executors
service:
name: zuul-executor
state: stopped
become: true
become_user: root
- hosts: 'zuul01.openstack.org'
tasks:
- name: Start Zuul Scheduler
service:
name: zuul-scheduler
state: started
become: true
become_user: root
- name: Stop Zuul Web
service:
name: zuul-web
state: started
become: true
become_user: root
- name: Stop Zuul Finger Gateway
service:
name: zuul-fingergw
state: started
become: true
become_user: root
- hosts: 'zm*.openstack.org'
tasks:
- name: Wait for (3h10m) to stop Zuul Mergers
wait_for:
path: /var/run/zuul/merger.pid
state: absent
timeout: 11400
- name: Start Zuul Mergers
service:
name: zuul-merger
state: started
become: true
become_user: root
- hosts: 'ze*.openstack.org'
tasks:
- name: Wait for (3h10m) to stop Zuul Executors
wait_for:
path: /var/run/zuul/executor.pid
state: absent
timeout: 11400
- name: Start Zuul Executors
service:
name: zuul-executor
state: started
become: true
become_user: root

@ -0,0 +1,40 @@
# Run this with "-f 20"
- hosts: 'zuul01.openstack.org'
tasks:
- name: Start Zuul Scheduler
service:
name: zuul-scheduler
state: started
become: true
become_user: root
- name: Stop Zuul Web
service:
name: zuul-web
state: started
become: true
become_user: root
- name: Stop Zuul Finger Gateway
service:
name: zuul-fingergw
state: started
become: true
become_user: root
- hosts: 'zm*.openstack.org'
tasks:
- name: Start Zuul Mergers
service:
name: zuul-merger
state: started
become: true
become_user: root
- hosts: 'ze*.openstack.org'
tasks:
- name: Start Zuul Executors
service:
name: zuul-executor
state: started
become: true
become_user: root

@ -0,0 +1,66 @@
# Run this with "-f 20"
- hosts: 'zuul01.openstack.org'
any_errors_fatal: true
tasks:
- name: Stop Zuul Scheduler
service:
name: zuul-scheduler
state: stopped
become: true
become_user: root
- name: Stop Zuul Web
service:
name: zuul-web
state: stopped
become: true
become_user: root
- name: Stop Zuul Finger Gateway
service:
name: zuul-fingergw
state: stopped
become: true
become_user: root
- name: Wait for (3h10m) to stop Zuul Scheduler
wait_for:
path: /var/run/zuul/scheduler.pid
state: absent
timeout: 11400
- name: Wait for (3h10m) to stop Zuul Web
wait_for:
path: /var/run/zuul/web.pid
state: absent
timeout: 11400
- name: Wait for (3h10m) to stop Zuul Finger Gateway
wait_for:
path: /var/run/zuul/fingergw.pid
state: absent
timeout: 11400
- hosts: 'zm*.openstack.org'
tasks:
- name: 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.pid
state: absent
timeout: 11400
- hosts: 'ze*.openstack.org'
tasks:
- name: Stop Zuul Executor
service:
name: zuul-executor
state: stopped
become: true
become_user: root
- name: Wait for (3h10m) to stop Zuul Executor
wait_for:
path: /var/run/zuul/executor.pid
state: absent
timeout: 11400

@ -1,19 +0,0 @@
---
- hosts: 'zuul.openstack.org'
any_errors_fatal: true
tasks:
- name: Start Zuul
service:
name: zuul
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

@ -1,29 +0,0 @@
---
- 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: '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…
Cancel
Save