3 # DO NOT EDIT - This file is being maintained by Chef
5 # Send output to the log
6 exec > /var/log/tile/render-lowzoom.log 2>&1
10 <% node[:tile][:styles].each_key do |style| -%>
12 # Define function to update tiles from z0 to z12 for style "<%= style %>"
13 function update_<%= style %>
16 --timestamp=${timestamp} \
17 --tile-dir=/srv/tile.openstreetmap.org/tiles \
18 --socket=/var/run/renderd/renderd.sock \
19 --num-threads=<%= node[:cpu][:total] - 1 %> \
20 --map="<%= style %>" \
22 --min-zoom=0 --max-zoom=12
25 # Loop running the update command until it suceeds
26 until update_<%= style %>