summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValentin Gologuzov <vgologuz@redhat.com>2015-08-17 14:55:26 +0200
committerValentin Gologuzov <vgologuz@redhat.com>2015-08-17 14:55:38 +0200
commit4a703de84f5766b9262db03b7dc80c698ad78169 (patch)
tree047df6610f054da78c4da8188b78ab7b42f61173
parentf8a5c6174517823d871d5bad850ba7c4926f77ce (diff)
downloadansible-4a703de84f5766b9262db03b7dc80c698ad78169.tar.gz
ansible-4a703de84f5766b9262db03b7dc80c698ad78169.tar.xz
ansible-4a703de84f5766b9262db03b7dc80c698ad78169.zip
[copr] restart logstash each hour
-rw-r--r--roles/copr/backend/files/cron/restart_logstash.sh3
-rw-r--r--roles/copr/backend/tasks/main.yml1
2 files changed, 4 insertions, 0 deletions
diff --git a/roles/copr/backend/files/cron/restart_logstash.sh b/roles/copr/backend/files/cron/restart_logstash.sh
new file mode 100644
index 000000000..d7f874891
--- /dev/null
+++ b/roles/copr/backend/files/cron/restart_logstash.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/sh
+
+systemctl restart logstash &> /dev/nul
diff --git a/roles/copr/backend/tasks/main.yml b/roles/copr/backend/tasks/main.yml
index eebc31a1f..ccdec3b85 100644
--- a/roles/copr/backend/tasks/main.yml
+++ b/roles/copr/backend/tasks/main.yml
@@ -179,6 +179,7 @@
- copy: src="cleanup_vm_nova.py" dest=/home/copr/ mode=755
- copy: src="cleanup_vms.sh" dest=/etc/cron.hourly/copr_cleanup_vms.sh mode=755
+- copy: src="cron/restart_logstash.sh" dest=/etc/cron.hourly/restart_logstash.sh mode=755
#- name: copy delete-forgotten-instances.pl
# copy: src="delete-forgotten-instances.pl" dest=/home/copr/delete-forgotten-instances.pl mode=755