Use host groups for zuul playbooks

Rather than list the hostnames individually, use the inventory group.

Change-Id: I554fb33f26c31df5f97ffd5be61f6d3e17faefa5
changes/35/602135/1
Joshua Hesketh 4 years ago
parent bed24ba5e0
commit 600d87ffe5

@ -1,4 +1,4 @@
- hosts: 'zuul01.openstack.org'
- hosts: 'zuul-scheduler:!disabled'
any_errors_fatal: true
tasks:
- name: Reconfigure the zuul scheduler

@ -1,6 +1,6 @@
# Run this with "-f 20"
- hosts: 'zuul01.openstack.org'
- hosts: 'zuul-scheduler:!disabled'
any_errors_fatal: true
tasks:
- name: Stop Zuul Scheduler
@ -37,7 +37,7 @@
state: absent
timeout: 11400
- hosts: 'zm*.openstack.org'
- hosts: 'zuul-merger:!disabled'
tasks:
- name: Stop Zuul Mergers
service:
@ -46,7 +46,7 @@
become: true
become_user: root
- hosts: 'ze*.openstack.org'
- hosts: 'zuul-executor:!disabled'
tasks:
- name: Stop Zuul Executors
service:
@ -55,7 +55,7 @@
become: true
become_user: root
- hosts: 'zuul01.openstack.org'
- hosts: 'zuul-scheduler:!disabled'
tasks:
- name: Start Zuul Scheduler
service:
@ -76,7 +76,7 @@
become: true
become_user: root
- hosts: 'zm*.openstack.org'
- hosts: 'zuul-merger:!disabled'
tasks:
- name: Wait for (3h10m) to stop Zuul Mergers
wait_for:
@ -90,7 +90,7 @@
become: true
become_user: root
- hosts: 'ze*.openstack.org'
- hosts: 'zuul-executor:!disabled'
tasks:
- name: Wait for (3h10m) to stop Zuul Executors
wait_for:

@ -1,6 +1,6 @@
# Run this with "-f 20"
- hosts: 'zuul01.openstack.org'
- hosts: 'zuul-scheduler:!disabled'
tasks:
- name: Start Zuul Scheduler
service:
@ -21,7 +21,7 @@
become: true
become_user: root
- hosts: 'zm*.openstack.org'
- hosts: 'zuul-merger:!disabled'
tasks:
- name: Start Zuul Mergers
service:
@ -30,7 +30,7 @@
become: true
become_user: root
- hosts: 'ze*.openstack.org'
- hosts: 'zuul-executor:!disabled'
tasks:
- name: Start Zuul Executors
service:

@ -1,6 +1,6 @@
# Run this with "-f 20"
- hosts: 'zuul01.openstack.org'
- hosts: 'zuul-scheduler:!disabled'
any_errors_fatal: true
tasks:
- name: Stop Zuul Scheduler
@ -37,7 +37,7 @@
state: absent
timeout: 11400
- hosts: 'zm*.openstack.org'
- hosts: 'zuul-merger:!disabled'
tasks:
- name: Stop Zuul Merger
service:
@ -51,7 +51,7 @@
state: absent
timeout: 11400
- hosts: 'ze*.openstack.org'
- hosts: 'zuul-executor:!disabled'
tasks:
- name: Stop Zuul Executor
service:

Loading…
Cancel
Save