]> git.openstreetmap.org Git - chef.git/commitdiff
Ubuntu 16.04 uses mapnik 3.0
authorTom Hughes <tom@compton.nu>
Wed, 24 Aug 2016 21:23:06 +0000 (22:23 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 24 Aug 2016 21:23:06 +0000 (22:23 +0100)
cookbooks/tile/templates/default/renderd.conf.erb

index ce5c55a22188c27df96c5f2d36a06e206ffe0b2d..33adc8a9cad4d19e9276ac967f17d7c65362bb6b 100644 (file)
@@ -7,7 +7,11 @@ tile_dir=/srv/tile.openstreetmap.org/tiles
 stats_file=/var/run/renderd/renderd.stats
 
 [mapnik]
 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
 plugins_dir=/usr/lib/mapnik/2.2/input
+<% end -%>
 font_dir=/usr/share/fonts
 font_dir_recurse=true
 <% node[:tile][:styles].each do |name,details| -%>
 font_dir=/usr/share/fonts
 font_dir_recurse=true
 <% node[:tile][:styles].each do |name,details| -%>