]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
spk-spar-checker add cronjob log_analysis
authorAndreas Gerstenberg <gerstenberg@pixelpark.com>
Tue, 21 Nov 2017 10:59:54 +0000 (11:59 +0100)
committerAndreas Gerstenberg <gerstenberg@pixelpark.com>
Tue, 21 Nov 2017 10:59:54 +0000 (11:59 +0100)
customer/spk-spar-checker/production.yaml
customer/spk-spar-checker/test.yaml

index 2ce8c56b40d923aa67c3a0bf32dc625a4218cc90..c8c60cfca4b976666b81c516fc77f55d2722f639 100644 (file)
@@ -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
index 1dfc8df34ba379092d8f137b57894dafa80ea501..097eff4112d085081466c36d235338466e8c9915 100644 (file)
@@ -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