Prepare stg for next koschei
This commit is contained in:
parent
6c6b8ba3d8
commit
faaa016fd9
4 changed files with 22 additions and 18 deletions
|
@ -57,3 +57,9 @@ csi_relationship: |
|
|||
- pkgdb2
|
||||
- bastion (for mail relay)
|
||||
- memcached01
|
||||
|
||||
koschei_backend_services:
|
||||
- koschei-polling
|
||||
- koschei-resolver
|
||||
- koschei-scheduler
|
||||
- koschei-watcher
|
||||
|
|
8
roles/koschei/backend/defaults/main.yml
Normal file
8
roles/koschei/backend/defaults/main.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
|
||||
koschei_backend_services:
|
||||
- koschei-polling
|
||||
- koschei-build-resolver
|
||||
- koschei-repo-resolver
|
||||
- koschei-scheduler
|
||||
- koschei-watcher
|
|
@ -12,3 +12,7 @@
|
|||
|
||||
- name: restart koschei-watcher
|
||||
action: service name=koschei-watcher state=restarted
|
||||
|
||||
- name: restart koschei backend services
|
||||
service: name={{ item }} state=restarted
|
||||
with_items: "{{ koschei_backend_services }}"
|
||||
|
|
|
@ -13,11 +13,7 @@
|
|||
file: >
|
||||
path="/etc/systemd/system/{{ item }}.service.d"
|
||||
state=directory
|
||||
with_items:
|
||||
- koschei-polling
|
||||
- koschei-resolver
|
||||
- koschei-scheduler
|
||||
- koschei-watcher
|
||||
with_items: "{{ koschei_backend_services }}"
|
||||
notify:
|
||||
- reload systemd
|
||||
tags:
|
||||
|
@ -48,10 +44,7 @@
|
|||
- config-admin.cfg
|
||||
- config-backend.cfg
|
||||
notify:
|
||||
- restart koschei-polling
|
||||
- restart koschei-resolver
|
||||
- restart koschei-scheduler
|
||||
- restart koschei-watcher
|
||||
- restart koschei backend services
|
||||
tags:
|
||||
- koschei
|
||||
- config
|
||||
|
@ -59,10 +52,7 @@
|
|||
- name: install koschei fedmsg config
|
||||
copy: src=koschei.py dest=/etc/fedmsg.d/koschei.py
|
||||
notify:
|
||||
- restart koschei-polling
|
||||
- restart koschei-resolver
|
||||
- restart koschei-scheduler
|
||||
- restart koschei-watcher
|
||||
- restart koschei backend services
|
||||
tags:
|
||||
- koschei
|
||||
- config
|
||||
|
@ -78,11 +68,7 @@
|
|||
|
||||
- name: enable services to start on boot
|
||||
service: name={{ item }} state=running enabled=true
|
||||
with_items:
|
||||
- koschei-polling
|
||||
- koschei-resolver
|
||||
- koschei-scheduler
|
||||
- koschei-watcher
|
||||
with_items: "{{ koschei_backend_services }}"
|
||||
tags:
|
||||
- koschei
|
||||
- service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue