+ group "tile"
+ mode 0o755
+ end
+
+ details[:tile_directories].each do |directory|
+ directory directory[:name] do
+ owner "www-data"
+ group "www-data"
+ mode 0o755
+ end
+
+ directory[:min_zoom].upto(directory[:max_zoom]) do |zoom|
+ directory "#{directory[:name]}/#{zoom}" do
+ owner "www-data"
+ group "www-data"
+ mode 0o755
+ end
+
+ link "#{tile_directory}/#{zoom}" do
+ to "#{directory[:name]}/#{zoom}"
+ owner "tile"
+ group "tile"
+ end
+ end