extend the fedwatch systemd configuration to restart on failure
This commit is contained in:
parent
aaf5341e50
commit
2a9ea19315
2 changed files with 14 additions and 0 deletions
4
roles/bodhi2/backend/files/fedwatch.service
Normal file
4
roles/bodhi2/backend/files/fedwatch.service
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
[Service]
|
||||||
|
User=fedmsg
|
||||||
|
Group=fedmsg
|
||||||
|
Restart=on-failure
|
|
@ -172,6 +172,16 @@
|
||||||
- bodhi
|
- bodhi
|
||||||
- cron
|
- cron
|
||||||
|
|
||||||
|
- name: extend the fedwatch systemd configuration to restart on failure
|
||||||
|
copy: src=fedwatch.service dest=/usr/lib/systemd/system/fedwatch.service.d/fedwatch.conf
|
||||||
|
when: inventory_hostname.startswith('bodhi-backend01') and env == "production"
|
||||||
|
notify:
|
||||||
|
- reload systemd
|
||||||
|
- restart fedwatch
|
||||||
|
tags:
|
||||||
|
- bodhi
|
||||||
|
- fedwatch
|
||||||
|
|
||||||
- name: configure fedwatch to sync packages as soon as requests are process.
|
- name: configure fedwatch to sync packages as soon as requests are process.
|
||||||
copy: src=fedwatch.conf dest=/etc/fedwatch.conf
|
copy: src=fedwatch.conf dest=/etc/fedwatch.conf
|
||||||
when: inventory_hostname.startswith('bodhi-backend01') and env == "production"
|
when: inventory_hostname.startswith('bodhi-backend01') and env == "production"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue