]> git.openstreetmap.org Git - chef.git/blob - cookbooks/tile/templates/default/expire-tiles.erb
podman: revert to using default slirp4netns mtu
[chef.git] / cookbooks / tile / templates / default / expire-tiles.erb
1 #!/usr/bin/ruby
2
3 # DO NOT EDIT - This file is being maintained by Chef
4
5 args = [
6   "--socket=/var/run/renderd/renderd.sock",
7   "--tile-dir=/srv/tile.openstreetmap.org/tiles",
8   "--touch-from=13",
9   "--min-zoom=13"
10 ]
11
12 Dir.glob("/var/lib/replicate/expire-queue/changes-*.txt").sort.each do |f|
13   <% node[:tile][:styles].each do |name,details| -%>
14   system("/usr/bin/render_expired", "--map=<%= name %>", *args, "--max-zoom=<%= details[:max_zoom] %>", :in=> f) &&
15   <% end -%>
16   File::unlink(f)
17 end