X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8e9e103e9f748fe7a104c4fba00cc72a847e2d3a..5e24e241c48aae55fe5a81b73a832922ae700824:/cookbooks/tile/templates/default/expire-tiles.erb?ds=sidebyside diff --git a/cookbooks/tile/templates/default/expire-tiles.erb b/cookbooks/tile/templates/default/expire-tiles.erb index e9473a1a7..2c0e7406e 100644 --- a/cookbooks/tile/templates/default/expire-tiles.erb +++ b/cookbooks/tile/templates/default/expire-tiles.erb @@ -4,6 +4,14 @@ require 'expire' +tile_dirs = [ +<% node[:tile][:styles].each do |name,details| -%> + "/srv/tile.openstreetmap.org/tiles/<%= name %>", +<% end -%> +] + +max_zoom = <%= node[:tile][:styles].collect { |n,d| d[:max_zoom] }.max %> + ARGV.each do |f| - Expire::expire(f) + Expire::expire(f, 13, max_zoom, tile_dirs) end