3 # DO NOT EDIT - This file is being maintained by Chef
 
   5 # Define function to update tiles from z0 to z12 for style "<%= @style %>"
 
   9     --timestamp=$(stat -c %Y "/srv/tile.openstreetmap.org/styles/<%= @style %>/project.xml") \
 
  10     --tile-dir=/srv/tile.openstreetmap.org/tiles \
 
  11     --socket=/run/renderd/renderd.sock \
 
  12     --num-threads=<%= @threads %> \
 
  13     --map="<%= @style %>" \
 
  14     --max-load=<%= node.cpu_cores - 1 %> \
 
  15     --min-zoom=0 --max-zoom=12
 
  21 # Loop running the update command until it suceeds
 
  25   if [ "$count" -ge "$max_tries" ]; then
 
  26     echo "Aborting <%= @style %> after $max_tries failed attempts"
 
  32 # Update timestamp for style "<%= @style %>"
 
  34   --reference="/srv/tile.openstreetmap.org/styles/<%= @style %>/project.xml" \
 
  35   "/srv/tile.openstreetmap.org/tiles/<%= @style %>/planet-import-complete"