]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/renderd.conf.erb
Merge remote-tracking branch 'github/pull/513'
[chef.git] / cookbooks / tile / templates / default / renderd.conf.erb
index 33adc8a9cad4d19e9276ac967f17d7c65362bb6b..8f441db2ca216269b8a627b85a1455861e02ad39 100644 (file)
@@ -2,16 +2,12 @@
 
 [renderd]
 socketname=/var/run/renderd/renderd.sock
-num_threads=<%= node[:cpu][:total] - 2 %>
+num_threads=<%= node[:cpu][:total] - 1 %>
 tile_dir=/srv/tile.openstreetmap.org/tiles
 stats_file=/var/run/renderd/renderd.stats
 
 [mapnik]
-<% if node[:lsb][:release].to_f >= 16.04 -%>
-plugins_dir=/usr/lib/mapnik/3.0/input
-<% else -%>
-plugins_dir=/usr/lib/mapnik/2.2/input
-<% end -%>
+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| -%>