Remove old init scripts and services for zuul/nodepool

We're running these in containers now. Please not to try to start
them the old way.

failed_when false is because we can't disable the old service
in the gate if there is no service file installed.

Change-Id: Ia4560f385fc98e23f987a67a1dfa60c3188816b6
This commit is contained in:
Monty Taylor 2020-05-06 17:13:58 -05:00
parent f7ba1bd6c2
commit c836437925
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