]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/planet/recipes/current.rb
Replace cron.d templates with cron_d resources
[chef.git] / cookbooks / planet / recipes / current.rb
index 20c77b7322c8752bab271fd6c877695f7271794d..6242559eb054714cfc9e8b99efe0471465c817d2 100644 (file)
@@ -52,11 +52,11 @@ remote_file "/var/lib/planet/planet.pbf" do
   not_if { ENV["TEST_KITCHEN"] }
 end
 
-template "/etc/cron.d/planet-update" do
-  source "planet-update.cron.erb"
-  owner "root"
-  group "root"
-  mode 0o644
+cron_d "planet-update" do
+  minute "17"
+  hour "1"
+  user "root"
+  command "/usr/local/bin/planet-update"
 end
 
 template "/etc/logrotate.d/planet-update" do