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
This commit is contained in:
parent
8fd2857a8e
commit
b6cbb52447
16
playbooks/nodepool_pull.yaml
Normal file
16
playbooks/nodepool_pull.yaml
Normal file
@ -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
|
dest: /etc/nodepool-builder-compose/docker-compose.yaml
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
- name: Run docker-compose pull
|
- name: Update container images
|
||||||
shell:
|
include_tasks: pull.yaml
|
||||||
cmd: docker-compose pull
|
|
||||||
chdir: /etc/nodepool-builder-compose/
|
|
||||||
|
|
||||||
- name: Start nodepool builder
|
- name: Start nodepool builder
|
||||||
include_tasks: start.yaml
|
include_tasks: start.yaml
|
||||||
|
4
playbooks/roles/nodepool-builder/tasks/pull.yaml
Normal file
4
playbooks/roles/nodepool-builder/tasks/pull.yaml
Normal file
@ -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
|
src: docker-compose.yaml.j2
|
||||||
dest: /etc/nodepool-docker/docker-compose.yaml
|
dest: /etc/nodepool-docker/docker-compose.yaml
|
||||||
|
|
||||||
- name: Run docker-compose pull
|
- name: Update container images
|
||||||
shell:
|
include_tasks: pull.yaml
|
||||||
cmd: docker-compose pull
|
|
||||||
chdir: /etc/nodepool-docker/
|
|
||||||
|
|
||||||
- name: Start nodepool launcher
|
- name: Start nodepool launcher
|
||||||
include_tasks: start.yaml
|
include_tasks: start.yaml
|
||||||
|
4
playbooks/roles/nodepool-launcher/tasks/pull.yaml
Normal file
4
playbooks/roles/nodepool-launcher/tasks/pull.yaml
Normal file
@ -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
|
src: docker-compose.yaml
|
||||||
dest: /etc/zuul-executor/docker-compose.yaml
|
dest: /etc/zuul-executor/docker-compose.yaml
|
||||||
|
|
||||||
- name: Run docker-compose pull
|
- name: Update container images
|
||||||
shell:
|
include_tasks: pull.yaml
|
||||||
cmd: docker-compose pull
|
|
||||||
chdir: /etc/zuul-executor
|
|
||||||
|
|
||||||
- name: Start containers
|
- name: Start containers
|
||||||
include_tasks: start.yaml
|
include_tasks: start.yaml
|
||||||
|
4
playbooks/roles/zuul-executor/tasks/pull.yaml
Normal file
4
playbooks/roles/zuul-executor/tasks/pull.yaml
Normal file
@ -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
|
src: docker-compose.yaml
|
||||||
dest: /etc/zuul-merger/docker-compose.yaml
|
dest: /etc/zuul-merger/docker-compose.yaml
|
||||||
|
|
||||||
- name: Run docker-compose pull
|
- name: Update container images
|
||||||
shell:
|
include_tasks: pull.yaml
|
||||||
cmd: docker-compose pull
|
|
||||||
chdir: /etc/zuul-merger
|
|
||||||
|
|
||||||
- name: Start containers
|
- name: Start containers
|
||||||
include_tasks: start.yaml
|
include_tasks: start.yaml
|
||||||
|
4
playbooks/roles/zuul-merger/tasks/pull.yaml
Normal file
4
playbooks/roles/zuul-merger/tasks/pull.yaml
Normal file
@ -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
|
src: docker-compose.yaml
|
||||||
dest: /etc/zuul-scheduler/docker-compose.yaml
|
dest: /etc/zuul-scheduler/docker-compose.yaml
|
||||||
|
|
||||||
- name: Run docker-compose pull
|
- name: Update container images
|
||||||
shell:
|
include_tasks: pull.yaml
|
||||||
cmd: docker-compose pull
|
|
||||||
chdir: /etc/zuul-scheduler
|
|
||||||
|
|
||||||
- name: Start containers
|
- name: Start containers
|
||||||
include_tasks: start.yaml
|
include_tasks: start.yaml
|
||||||
|
4
playbooks/roles/zuul-scheduler/tasks/pull.yaml
Normal file
4
playbooks/roles/zuul-scheduler/tasks/pull.yaml
Normal file
@ -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
|
src: docker-compose.yaml
|
||||||
dest: /etc/zuul-web/docker-compose.yaml
|
dest: /etc/zuul-web/docker-compose.yaml
|
||||||
|
|
||||||
- name: Run docker-compose pull
|
- name: Update container images
|
||||||
shell:
|
include_tasks: pull.yaml
|
||||||
cmd: docker-compose pull
|
|
||||||
chdir: /etc/zuul-web
|
|
||||||
|
|
||||||
- name: Start containers
|
- name: Start containers
|
||||||
include_tasks: start.yaml
|
include_tasks: start.yaml
|
||||||
|
4
playbooks/roles/zuul-web/tasks/pull.yaml
Normal file
4
playbooks/roles/zuul-web/tasks/pull.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
- name: Run docker-compose pull
|
||||||
|
shell:
|
||||||
|
cmd: docker-compose pull
|
||||||
|
chdir: /etc/zuul-web
|
23
playbooks/zuul_pull.yaml
Normal file
23
playbooks/zuul_pull.yaml
Normal file
@ -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…
Reference in New Issue
Block a user