]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/renderd.conf.erb
Update to tilelog 1.6.1
[chef.git] / cookbooks / tile / templates / default / renderd.conf.erb
index ce5c55a22188c27df96c5f2d36a06e206ffe0b2d..d29c58aa7728f9512a6fe22d2dac67269319ed9e 100644 (file)
@@ -2,12 +2,12 @@
 
 [renderd]
 socketname=/var/run/renderd/renderd.sock
-num_threads=<%= node[:cpu][:total] - 2 %>
+num_threads=<%= node.cpu_cores - 1 %>
 tile_dir=/srv/tile.openstreetmap.org/tiles
 stats_file=/var/run/renderd/renderd.stats
 
 [mapnik]
-plugins_dir=/usr/lib/mapnik/2.2/input
+plugins_dir=/usr/lib/mapnik/<%= node[:tile][:mapnik] %>/input
 font_dir=/usr/share/fonts
 font_dir_recurse=true
 <% node[:tile][:styles].each do |name,details| -%>