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 any_errors_fatal: true
tasks: tasks:
- name: Reconfigure the zuul scheduler - name: Reconfigure the zuul scheduler

View File

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

View File

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

View File

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