Add pull tasks for nodepool/zuul

So we can stop/pull/start, move the pull tasks to their own files
and add a playbook that invokes them.

Change-Id: I4f351c1d28e5e4606e0a778e545a3a805525ac71
changes/20/776720/1
James E. Blair 2 years ago
parent 8fd2857a8e
commit b6cbb52447
  1. 16
      playbooks/nodepool_pull.yaml
  2. 6
      playbooks/roles/nodepool-builder/tasks/main.yaml
  3. 4
      playbooks/roles/nodepool-builder/tasks/pull.yaml
  4. 6
      playbooks/roles/nodepool-launcher/tasks/main.yaml
  5. 4
      playbooks/roles/nodepool-launcher/tasks/pull.yaml
  6. 6
      playbooks/roles/zuul-executor/tasks/main.yaml
  7. 4
      playbooks/roles/zuul-executor/tasks/pull.yaml
  8. 6
      playbooks/roles/zuul-merger/tasks/main.yaml
  9. 4
      playbooks/roles/zuul-merger/tasks/pull.yaml
  10. 6
      playbooks/roles/zuul-scheduler/tasks/main.yaml
  11. 4
      playbooks/roles/zuul-scheduler/tasks/pull.yaml
  12. 6
      playbooks/roles/zuul-web/tasks/main.yaml
  13. 4
      playbooks/roles/zuul-web/tasks/pull.yaml
  14. 23
      playbooks/zuul_pull.yaml

@ -0,0 +1,16 @@
# Run this with "-f 20"
- hosts: 'nodepool-builder:!disabled'
any_errors_fatal: true
tasks:
- include_role:
name: nodepool-builder
tasks_from: pull
- hosts: 'nodepool-launcher:!disabled'
any_errors_fatal: true
tasks:
- include_role:
name: nodepool-launcher
tasks_from: pull

@ -31,10 +31,8 @@
dest: /etc/nodepool-builder-compose/docker-compose.yaml
mode: 0644
- name: Run docker-compose pull
shell:
cmd: docker-compose pull
chdir: /etc/nodepool-builder-compose/
- name: Update container images
include_tasks: pull.yaml
- name: Start nodepool builder
include_tasks: start.yaml

@ -0,0 +1,4 @@
- name: Run docker-compose pull
shell:
cmd: docker-compose pull
chdir: /etc/nodepool-builder-compose/

@ -45,10 +45,8 @@
src: docker-compose.yaml.j2
dest: /etc/nodepool-docker/docker-compose.yaml
- name: Run docker-compose pull
shell:
cmd: docker-compose pull
chdir: /etc/nodepool-docker/
- name: Update container images
include_tasks: pull.yaml
- name: Start nodepool launcher
include_tasks: start.yaml

@ -0,0 +1,4 @@
- name: Run docker-compose pull
shell:
cmd: docker-compose pull
chdir: /etc/nodepool-docker/

@ -78,10 +78,8 @@
src: docker-compose.yaml
dest: /etc/zuul-executor/docker-compose.yaml
- name: Run docker-compose pull
shell:
cmd: docker-compose pull
chdir: /etc/zuul-executor
- name: Update container images
include_tasks: pull.yaml
- name: Start containers
include_tasks: start.yaml

@ -0,0 +1,4 @@
- name: Run docker-compose pull
shell:
cmd: docker-compose pull
chdir: /etc/zuul-executor

@ -42,10 +42,8 @@
src: docker-compose.yaml
dest: /etc/zuul-merger/docker-compose.yaml
- name: Run docker-compose pull
shell:
cmd: docker-compose pull
chdir: /etc/zuul-merger
- name: Update container images
include_tasks: pull.yaml
- name: Start containers
include_tasks: start.yaml

@ -0,0 +1,4 @@
- name: Run docker-compose pull
shell:
cmd: docker-compose pull
chdir: /etc/zuul-merger

@ -63,10 +63,8 @@
src: docker-compose.yaml
dest: /etc/zuul-scheduler/docker-compose.yaml
- name: Run docker-compose pull
shell:
cmd: docker-compose pull
chdir: /etc/zuul-scheduler
- name: Update container images
include_tasks: pull.yaml
- name: Start containers
include_tasks: start.yaml

@ -0,0 +1,4 @@
- name: Run docker-compose pull
shell:
cmd: docker-compose pull
chdir: /etc/zuul-scheduler

@ -100,10 +100,8 @@
src: docker-compose.yaml
dest: /etc/zuul-web/docker-compose.yaml
- name: Run docker-compose pull
shell:
cmd: docker-compose pull
chdir: /etc/zuul-web
- name: Update container images
include_tasks: pull.yaml
- name: Start containers
include_tasks: start.yaml

@ -0,0 +1,4 @@
- name: Run docker-compose pull
shell:
cmd: docker-compose pull
chdir: /etc/zuul-web

@ -0,0 +1,23 @@
# Run this with "-f 20"
- hosts: 'zuul-scheduler:!disabled'
any_errors_fatal: true
tasks:
- include_role:
name: zuul-scheduler
tasks_from: pull
- include_role:
name: zuul-web
tasks_from: pull
- hosts: 'zuul-merger:!disabled'
tasks:
- include_role:
name: zuul-merger
tasks_from: pull
- hosts: 'zuul-executor:!disabled'
tasks:
- include_role:
name: zuul-executor
tasks_from: pull
Loading…
Cancel
Save