Prepare stg for next koschei

This commit is contained in:
Michael Simacek 2017-03-01 16:27:31 +01:00
parent 6c6b8ba3d8
commit faaa016fd9
4 changed files with 22 additions and 18 deletions

View file

@ -57,3 +57,9 @@ csi_relationship: |
- pkgdb2 - pkgdb2
- bastion (for mail relay) - bastion (for mail relay)
- memcached01 - memcached01
koschei_backend_services:
- koschei-polling
- koschei-resolver
- koschei-scheduler
- koschei-watcher

View file

@ -0,0 +1,8 @@
---
koschei_backend_services:
- koschei-polling
- koschei-build-resolver
- koschei-repo-resolver
- koschei-scheduler
- koschei-watcher

View file

@ -12,3 +12,7 @@
- name: restart koschei-watcher - name: restart koschei-watcher
action: service name=koschei-watcher state=restarted action: service name=koschei-watcher state=restarted
- name: restart koschei backend services
service: name={{ item }} state=restarted
with_items: "{{ koschei_backend_services }}"

View file

@ -13,11 +13,7 @@
file: > file: >
path="/etc/systemd/system/{{ item }}.service.d" path="/etc/systemd/system/{{ item }}.service.d"
state=directory state=directory
with_items: with_items: "{{ koschei_backend_services }}"
- koschei-polling
- koschei-resolver
- koschei-scheduler
- koschei-watcher
notify: notify:
- reload systemd - reload systemd
tags: tags:
@ -48,10 +44,7 @@
- config-admin.cfg - config-admin.cfg
- config-backend.cfg - config-backend.cfg
notify: notify:
- restart koschei-polling - restart koschei backend services
- restart koschei-resolver
- restart koschei-scheduler
- restart koschei-watcher
tags: tags:
- koschei - koschei
- config - config
@ -59,10 +52,7 @@
- name: install koschei fedmsg config - name: install koschei fedmsg config
copy: src=koschei.py dest=/etc/fedmsg.d/koschei.py copy: src=koschei.py dest=/etc/fedmsg.d/koschei.py
notify: notify:
- restart koschei-polling - restart koschei backend services
- restart koschei-resolver
- restart koschei-scheduler
- restart koschei-watcher
tags: tags:
- koschei - koschei
- config - config
@ -78,11 +68,7 @@
- name: enable services to start on boot - name: enable services to start on boot
service: name={{ item }} state=running enabled=true service: name={{ item }} state=running enabled=true
with_items: with_items: "{{ koschei_backend_services }}"
- koschei-polling
- koschei-resolver
- koschei-scheduler
- koschei-watcher
tags: tags:
- koschei - koschei
- service - service