X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ab47927c016597f8602b81dcdc168ad5c335389d..366f2c3039f3115f856906fc19cc1fbae348fffc:/cookbooks/tile/templates/default/expire-tiles.erb diff --git a/cookbooks/tile/templates/default/expire-tiles.erb b/cookbooks/tile/templates/default/expire-tiles.erb index 3a023d6b2..1af7f0a64 100644 --- a/cookbooks/tile/templates/default/expire-tiles.erb +++ b/cookbooks/tile/templates/default/expire-tiles.erb @@ -3,13 +3,15 @@ # DO NOT EDIT - This file is being maintained by Chef args = [ -<% node[:tile][:styles].each do |name,details| -%> - "-t", "/srv/tile.openstreetmap.org/tiles/<%= name %>", -<% end -%> - "--min", "13", - "--max", "<%= node[:tile][:styles].collect { |n,d| d[:max_zoom] }.max %>" + "--socket=/var/run/renderd/renderd.sock", + "--tile-dir=/srv/tile.openstreetmap.org/tiles", + "--touch-from=13", + "--min-zoom=13" ] -Dir.glob("/var/lib/replicate/expire-queue/changes-*.gz").sort.each do |f| - system("/usr/local/bin/expire-tiles-single", *args, f) && File::unlink(f) +Dir.glob("/var/lib/replicate/expire-queue/changes-*.txt").sort.each do |f| + <% node[:tile][:styles].each do |name,details| -%> + system("/usr/bin/render_expired", "--map=<%= name %>", *args, "--max-zoom=<%= details[:max_zoom] %>", :in=> f) && + <% end -%> + File::unlink(f) end