system-config/playbooks/nodepool_stop.yaml
Monty Taylor e0a00b4649 Add stop and start playbooks for nodepool
Organize these like our zuul rules.

Change-Id: Idf6148424c08efee9ad421b01d28d938c7058722
2020-06-16 15:48:47 -05:00

31 lines
681 B
YAML

# Run this with "-f 20"
- hosts: 'nodepool-builder_opendev:!disabled'
any_errors_fatal: true
tasks:
- include_role:
name: nodepool-builder
tasks_from: stop
- hosts: 'nodepool-launcher:!disabled'
any_errors_fatal: true
tasks:
- include_role:
name: nodepool-launcher
tasks_from: stop
- hosts: 'nb03.openstack.orgr:!disabled'
any_errors_fatal: true
tasks:
- name: Stop Nodepool Builder
service:
name: nodepool-builder
state: stopped
- name: Wait for (3h10m) to stop Nodepool Builder
wait_for:
path: /var/run/nodepool/nodepool-builder.pid
state: absent
timeout: 11400