]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/recipes/default.rb
Manage the git server xinetd config
[chef.git] / cookbooks / tilecache / recipes / default.rb
index 18aa14e145fc771fa638575ba199f8b01a233a5a..4015f994104305fa6369d28280691481da9f3ab4 100644 (file)
@@ -25,6 +25,7 @@ tilecaches.each do |cache|
   cache.ipaddresses(:family => :inet, :role => :external).sort.each do |address|
     firewall_rule "accept-squid" do
       action :accept
+      family "inet"
       source "net:#{address}"
       dest "fw"
       proto "tcp:syn"
@@ -33,6 +34,7 @@ tilecaches.each do |cache|
     end
     firewall_rule "accept-squid-icp" do
       action :accept
+      family "inet"
       source "net:#{address}"
       dest "fw"
       proto "udp"
@@ -46,3 +48,11 @@ squid_fragment "tilecache" do
   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
+