]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/recipes/default.rb
Install rsync on tile caches for log collection
[chef.git] / cookbooks / tilecache / recipes / default.rb
index 5c1cdba3c382df13993e58e70e704b7591a62192..5c4907b69c7805b98c78452a4f8c8fcb37cddeb8 100644 (file)
@@ -77,6 +77,8 @@ squid_fragment "tilecache" do
   variables :caches => tilecaches, :renders => tilerenders
 end
 
+package "rsync"
+
 template "/etc/logrotate.d/squid" do
   source "logrotate.squid.erb"
   owner "root"
@@ -113,7 +115,11 @@ ssl_certificate "tile.openstreetmap.org" do
   domains ["tile.openstreetmap.org",
            "a.tile.openstreetmap.org",
            "b.tile.openstreetmap.org",
-           "c.tile.openstreetmap.org"]
+           "c.tile.openstreetmap.org",
+           "tile.osm.org",
+           "a.tile.osm.org",
+           "b.tile.osm.org",
+           "c.tile.osm.org"]
   notifies :restart, "service[nginx]"
 end
 
@@ -136,7 +142,3 @@ tilerenders.each do |render|
     conf_variables :host => render[:fqdn]
   end
 end
-
-Dir.glob("/var/log/nginx/access.log*") do |log|
-  File.unlink(log)
-end