template "squid.conf.erb"
variables :caches => tilecaches
end
+
+template "/etc/logrotate.d/squid" do
+ source "logrotate.squid.erb"
+ owner "root"
+ group "root"
+ mode 0644
+end
+
--- /dev/null
+# DO NOT EDIT - This file is being maintained by Chef
+
+/var/log/squid/*.log {
+ daily
+ compress
+ delaycompress
+ rotate 2
+ missingok
+ nocreate
+ sharedscripts
+ postrotate
+ test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate
+ /usr/bin/rsync /var/log/squid/zere.log.2.gz ironbelly::logs/tile.openstreetmap.org/<%= node[:hostname] %>-`date -d "-2 days" +%Y-%m-%d`.gz
+ endscript
+}