Use host groups for zuul playbooks

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

Change-Id: I554fb33f26c31df5f97ffd5be61f6d3e17faefa5
This commit is contained in:
Joshua Hesketh 2018-09-12 12:26:43 -06:00
parent bed24ba5e0
commit 600d87ffe5
4 changed files with 13 additions and 13 deletions

View File

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

View File

@ -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:

View File

@ -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:

View File

@ -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: