]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/recipes/default.rb
Add log rotation for renderd logs
[chef.git] / cookbooks / tile / recipes / default.rb
index 9b4b3108390b5251a034cc1ffe4fec23219f8dc2..6cb1b9acbd21620ee2f96a0f6092094856aceb96 100644 (file)
@@ -496,6 +496,13 @@ template "/etc/rsyslog.d/20-renderd.conf" do
   notifies :restart, "service[rsyslog]"
 end
 
+template "/etc/logrotate.d/renderd" do
+  source "renderd.logrotate.erb"
+  owner "root"
+  group "root"
+  mode 0644
+end
+
 package "liblockfile-simple-perl"
 package "libfilesys-df-perl"