]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nginx/recipes/default.rb
Replace cron.d templates with cron_d resources
[chef.git] / cookbooks / nginx / recipes / default.rb
index cfd79376dab764296ce7c9e700483ec06fb1bf42..a7775c162644d1857b9940c2641f567d35d5a633 100644 (file)
@@ -68,9 +68,9 @@ template "/usr/local/bin/nginx-old-cache-cleanup" do
   mode 0o755
 end
 
-template "/etc/cron.d/nginx-old-cache-cleanup" do
-  source "nginx-old-cache-cleanup.cron.erb"
-  owner "root"
-  group "root"
-  mode 0o644
+cron_d "nginx-old-cache-cleanup" do
+  minute "15"
+  hour "23"
+  user "www-data"
+  command "/usr/bin/timeout 6h /usr/local/bin/nginx-old-cache-cleanup"
 end