Merge "Remove old init scripts and services for zuul/nodepool"

This commit is contained in:
Zuul 2020-05-07 15:31:26 +00:00 committed by Gerrit Code Review
commit 81716f2d96
5 changed files with 61 additions and 0 deletions

View File

@ -40,3 +40,14 @@
shell:
cmd: docker-compose up -d
chdir: /etc/nodepool-builder-compose/
- name: Disable old service
service:
name: nodepool-builder
enabled: no
failed_when: false
- name: Remove old init scripts
file:
state: absent
path: /etc/init.d/nodepool-builder

View File

@ -53,3 +53,14 @@
- name: Start nodepool launcher
include_tasks: start.yaml
when: nodepool_launcher_start | bool
- name: Disable old service
service:
name: nodepool-launcher
enabled: no
failed_when: false
- name: Remove old init scripts
file:
state: absent
path: /etc/init.d/nodepool-launcher

View File

@ -50,3 +50,14 @@
- name: Start containers
include_tasks: start.yaml
when: zuul_merger_start | bool
- name: Disable old service
service:
name: zuul-merger
enabled: no
failed_when: false
- name: Remove old init scripts
file:
state: absent
path: /etc/init.d/zuul-merger

View File

@ -71,3 +71,14 @@
- name: Start containers
include_tasks: start.yaml
when: zuul_scheduler_start is defined and zuul_scheduler_start | bool
- name: Disable old service
service:
name: zuul-scheduler
enabled: no
failed_when: false
- name: Remove old init scripts
file:
state: absent
path: /etc/init.d/zuul-scheduler

View File

@ -99,3 +99,20 @@
- name: Start containers
include_tasks: start.yaml
when: zuul_web_start | bool
- name: Disable old service
service:
name: 'zuul-{{ item }}'
enabled: no
failed_when: false
loop:
- web
- fingergw
- name: Remove old init scripts
file:
state: absent
path: '/etc/init.d/zuul-{{ item }}'
loop:
- web
- fingergw