]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/recipes/default.rb
Send renderd logs to a separate file
[chef.git] / cookbooks / tile / recipes / default.rb
index 67aeeaa11af151e8a82dc5999c3e706e3bb4e801..f39c31623768cca3fdcad1cef14bca9291ae4873 100644 (file)
@@ -21,6 +21,7 @@ include_recipe "apache"
 include_recipe "git"
 include_recipe "nodejs"
 include_recipe "postgresql"
+include_recipe "tools"
 
 blocks = data_bag_item("tile", "blocks")
 
@@ -415,6 +416,14 @@ template "/etc/cron.d/render-lowzoom" do
   mode 0755
 end
 
+template "/etc/rsyslog.d/20-renderd.conf" do
+  source "renderd.rsyslog.erb"
+  owner "root"
+  group "root"
+  mode 0644
+  notifies :restart, "service[rsyslog]"
+end
+
 munin_plugin "mod_tile_fresh"
 munin_plugin "mod_tile_response"
 munin_plugin "mod_tile_zoom"