]> git.openstreetmap.org Git - chef.git/commitdiff
Move log archiving and stats analysis to ironbelly
authorTom Hughes <tom@compton.nu>
Fri, 12 Jul 2013 08:26:03 +0000 (09:26 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 12 Jul 2013 08:26:58 +0000 (09:26 +0100)
cookbooks/web/templates/default/logrotate.apache.erb
roles/horntail.rb
roles/ironbelly.rb

index 6b8a6615e236cd62916fad399c1de7f2ea30be21..15e5290012670e4e4e598f2892e7d891ddc3f954 100644 (file)
@@ -11,6 +11,6 @@
   sharedscripts
   postrotate
     /usr/bin/service apache2 reload > /dev/null
-    /usr/bin/rsync /var/log/apache2/access.log.2.gz horntail::logs/www.openstreetmap.org/<%= node[:hostname] %>-`date -d "-2 days" +%Y-%m-%d`.gz
+    /usr/bin/rsync /var/log/apache2/access.log.2.gz ironbelly::logs/www.openstreetmap.org/<%= node[:hostname] %>-`date -d "-2 days" +%Y-%m-%d`.gz
   endscript
 }
index 894eb0d072b934b48049221e9862a6dcf63d078d..aec36a2a1cd45023068cbb5e947603096ba3410b 100644 (file)
@@ -107,7 +107,6 @@ default_attributes(
 run_list(
   "role[ic]",
   "role[planet]",
-  "role[stats]",
   "role[backup]",
   "recipe[rsyncd]"
 )
index cb807544d0ac9aa773fe6aa2097c9ba3f631f65b..959f9f74ac6ca70f42d209fac166a33ed4b0098d 100644 (file)
@@ -83,6 +83,7 @@ run_list(
   "role[web-storage]",
   "role[supybot]",
   "role[backup]",
+  "role[stats]",
   "recipe[rsyncd]",
   "recipe[openvpn]"
 )