From 4b0c8808c988da1de8274ef18ea03660167e9f2a Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Wed, 15 Feb 2017 19:30:16 +0000 Subject: [PATCH] add in our cron and ansible rules --- roles/web-data-analysis/files/condense-hotspot.cron | 1 + roles/web-data-analysis/tasks/main.yml | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 roles/web-data-analysis/files/condense-hotspot.cron diff --git a/roles/web-data-analysis/files/condense-hotspot.cron b/roles/web-data-analysis/files/condense-hotspot.cron new file mode 100644 index 0000000000..b4fe6d07c1 --- /dev/null +++ b/roles/web-data-analysis/files/condense-hotspot.cron @@ -0,0 +1 @@ +0 07 * * * root /usr/local/bin/condense-hotspot.sh diff --git a/roles/web-data-analysis/tasks/main.yml b/roles/web-data-analysis/tasks/main.yml index 81cf5b1e8a..fedd326c07 100644 --- a/roles/web-data-analysis/tasks/main.yml +++ b/roles/web-data-analysis/tasks/main.yml @@ -39,7 +39,7 @@ - name: scripts to condense data down for further processing copy: src={{item}} dest=/usr/local/bin/ mode=0755 - with_items: [condense-mirrorlogs.sh, condense-getfedoralogs.sh, run-daily-awstats.sh] + with_items: [condense-mirrorlogs.sh, condense-getfedoralogs.sh, run-daily-awstats.sh, condense-hotspot.sh ] tags: - web-data @@ -51,13 +51,13 @@ - name: awk files for csv creation copy: src={{item}} dest=/usr/local/share/web-data-analysis mode=0644 - with_items: [mirrors-data.awk, getfedora-data.awk, getfedora.awk] + with_items: [mirrors-data.awk, getfedora-data.awk, getfedora.awk, hotspot-data.awk, hotspot.awk ] tags: - web-data - name: gnuplot file for image creation copy: src={{item}} dest=/usr/local/share/web-data-analysis mode=0644 - with_items: [ mirrors-data.gp, getfedora-data.gp, mirrors-moving.gp ] + with_items: [ mirrors-data.gp, getfedora-data.gp, mirrors-moving.gp, hotspot.gp ] tags: - web-data