From f46747b901156754ade9d9a847fc0202040bf611 Mon Sep 17 00:00:00 2001 From: Andreas Gerstenberg Date: Tue, 21 Nov 2017 11:59:54 +0100 Subject: [PATCH] spk-spar-checker add cronjob log_analysis --- customer/spk-spar-checker/production.yaml | 10 ++++++++++ customer/spk-spar-checker/test.yaml | 23 ++++++++++------------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/customer/spk-spar-checker/production.yaml b/customer/spk-spar-checker/production.yaml index 2ce8c56b..c8c60cfc 100644 --- a/customer/spk-spar-checker/production.yaml +++ b/customer/spk-spar-checker/production.yaml @@ -263,3 +263,13 @@ infra::profile::cron::cronjobs: - 'APPLICATION_ENV=production' - 'LOG=/var/www/log/cron/users.mark.unused.log' description: users mark unused + log_analysis: + ensure: 'present' + user: deploy.spk + command: 'echo >> $LOG; date >> $LOG; /home/deploy.spk/swatch/log_analysis >>$LOG 2>&1' + minute: '0' + hour: '6' + environment: + - 'APPLICATION_ENV=production' + - 'LOG=/var/www/log/cron/log.analysis.log' + description: log analysis \ No newline at end of file diff --git a/customer/spk-spar-checker/test.yaml b/customer/spk-spar-checker/test.yaml index 1dfc8df3..097eff41 100644 --- a/customer/spk-spar-checker/test.yaml +++ b/customer/spk-spar-checker/test.yaml @@ -77,19 +77,6 @@ infra::profile::apache::pp_vhosts: - 'X-Forwarded-For 192.168.15.17 self_ip_range' - 'X-Forwarded-For 192.168.15.18 self_ip_range' - 'X-Forwarded-For 192.168.15.19 self_ip_range' -# - 'Remote_Addr 80.146.239.2 admin_ip_range' -# - 'Remote_Addr 109.86.229.215 admin_ip_range' -# - 'Remote_Addr 130.180.83.190 admin_ip_range' -# - 'Remote_Addr 195.69.134.114 admin_ip_range' -# - 'Remote_Addr 62.181.145.202 admin_ip_range' -# - 'Remote_Addr 195.140.123 admin_ip_range' -# - 'Remote_Addr 195.140.44 admin_ip_range' -# - 'Remote_Addr 62.181.145 admin_ip_range' -# - 'Remote_Addr 62.181.146 admin_ip_range' -# - 'Remote_Addr 192.168.15.16 self_ip_range' -# - 'Remote_Addr 192.168.15.17 self_ip_range' -# - 'Remote_Addr 192.168.15.18 self_ip_range' -# - 'Remote_Addr 192.168.15.19 self_ip_range' error_documents: - { error_code: 401 , document: "/401.html" } @@ -288,3 +275,13 @@ infra::profile::cron::cronjobs: - 'APPLICATION_ENV=production' - 'LOG=/var/www/log/cron/users.mark.unused.log' description: users mark unused + log_analysis: + ensure: 'present' + user: deploy.spk + command: 'echo >> $LOG; date >> $LOG; /home/deploy.spk/swatch/log_analysis >>$LOG 2>&1' + minute: '0' + hour: '6' + environment: + - 'APPLICATION_ENV=production' + - 'LOG=/var/www/log/cron/log.analysis.log' + description: log analysis -- 2.39.5