]> git.openstreetmap.org Git - chef.git/commitdiff
Drop Ubuntu 14.04 support from tile cookbook
authorTom Hughes <tom@compton.nu>
Mon, 12 Sep 2016 21:36:10 +0000 (22:36 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 12 Sep 2016 21:36:10 +0000 (22:36 +0100)
cookbooks/tile/recipes/default.rb
cookbooks/tile/templates/default/renderd.conf.erb
cookbooks/tile/templates/default/renderd.logrotate.erb [deleted file]
cookbooks/tile/templates/default/renderd.rsyslog.erb [deleted file]

index c17800156a2b91e5d57525127a4639df036bf38b..4bfbcb455140cf4f76d709dadf25b927c0f8e169 100644 (file)
@@ -118,13 +118,7 @@ package "python-mapnik"
 
 package "ttf-dejavu"
 package "ttf-unifont"
-
-if node[:lsb][:release].to_f >= 16.04
-  package "fonts-droid-fallback"
-else
-  package "fonts-droid"
-end
-
+package "fonts-droid-fallback"
 package "fonts-sipa-arundina"
 package "fonts-sil-padauk"
 package "fonts-khmeros"
@@ -497,32 +491,6 @@ template "/etc/cron.d/render-lowzoom" do
   mode 0o644
 end
 
-if node[:lsb][:release].to_f >= 16.04
-  file "/etc/rsyslog.d/20-renderd.conf" do
-    action :delete
-    notifies :restart, "service[rsyslog]"
-  end
-
-  file "/etc/logrotate.d/renderd" do
-    action :delete
-  end
-else
-  template "/etc/rsyslog.d/20-renderd.conf" do
-    source "renderd.rsyslog.erb"
-    owner "root"
-    group "root"
-    mode 0o644
-    notifies :restart, "service[rsyslog]"
-  end
-
-  template "/etc/logrotate.d/renderd" do
-    source "renderd.logrotate.erb"
-    owner "root"
-    group "root"
-    mode 0o644
-  end
-end
-
 package "liblockfile-simple-perl"
 package "libfilesys-df-perl"
 
index 33adc8a9cad4d19e9276ac967f17d7c65362bb6b..69479e0b013556ace35eb3079f6d1859a5edf9e1 100644 (file)
@@ -7,11 +7,7 @@ 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 -%>
 font_dir=/usr/share/fonts
 font_dir_recurse=true
 <% node[:tile][:styles].each do |name,details| -%>
diff --git a/cookbooks/tile/templates/default/renderd.logrotate.erb b/cookbooks/tile/templates/default/renderd.logrotate.erb
deleted file mode 100644 (file)
index 781045c..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-# DO NOT EDIT - This file is being maintained by Chef
-
-/var/log/tile/renderd.log {
-  daily
-  rotate 28
-  compress
-  delaycompress
-  notifempty
-  postrotate
-    reload rsyslog >/dev/null 2>&1 || true
-  endscript
-}
diff --git a/cookbooks/tile/templates/default/renderd.rsyslog.erb b/cookbooks/tile/templates/default/renderd.rsyslog.erb
deleted file mode 100644 (file)
index 59c62e6..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-# DO NOT EDIT - This file is being maintained by Chef
-
-if $programname == 'renderd' then -/var/log/tile/renderd.log
-& ~