X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/73a67339250bfe5c89820ed34e84329cc42e346c..39f19f6646b848d07e5c86b17a9dac413d2be758:/cookbooks/tile/templates/default/renderd.conf.erb diff --git a/cookbooks/tile/templates/default/renderd.conf.erb b/cookbooks/tile/templates/default/renderd.conf.erb index 4ce29d976..8f441db2c 100644 --- a/cookbooks/tile/templates/default/renderd.conf.erb +++ b/cookbooks/tile/templates/default/renderd.conf.erb @@ -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 >= 14.04 -%> -plugins_dir=/usr/lib/mapnik/2.2/input -<% else -%> -plugins_dir=/usr/lib/mapnik/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| -%>