content settings
end
-template "/etc/cron.d/osmf-crm" do
- source "cron.erb"
- owner "root"
- group "root"
- mode 0o600
- variables :directory => civicrm_directory, :passwords => passwords
+cron_d "osmf-crm" do
+ minute "*/15"
+ user "www-data"
+ command "php #{civicrm_directory}/civicrm/bin/cli.php -s join.osmfoundation.org -u batch -p \"#{passwords['batch']}\" -e Job -a execute 2>&1 | egrep -v '^PHP (Deprecated|Warning):'"
+ mailto "admins@openstreetmap.org"
end
template "/etc/cron.daily/osmf-crm-backup" do
+++ /dev/null
-# DO NOT EDIT - This file is being maintained by Chef
-
-MAILTO=admins@openstreetmap.org
-
-*/15 * * * * www-data php <%= @directory %>/civicrm/bin/cli.php -s join.osmfoundation.org -u batch -p "<%= @passwords["batch"] %>" -e Job -a execute 2>&1 | egrep -v '^PHP (Deprecated|Warning):'
mode 0o755
end
-template "/etc/cron.d/backup-db" do
- source "backup.cron.erb"
- owner "root"
- group "root"
- mode 0o644
+cron_d "backup-db" do
+ minute "00"
+ hour "02"
+ weekday "1"
+ user "osmbackup"
+ command "/usr/local/bin/backup-db"
+ mailto "admins@openstreetmap.org"
end
+++ /dev/null
-# DO NOT EDIT - This file is being maintained by Chef
-
-MAILTO=admins@openstreetmap.org
-
-00 02 * * 1 osmbackup /usr/local/bin/backup-db
variables :passwords => passwords, :geoservers => geoservers
end
-template "/etc/cron.d/dns" do
- source "cron.erb"
- owner "root"
- group "root"
- mode 0o644
+cron_d "dns" do
+ minute "*/3"
+ user "git"
+ command "/usr/local/bin/dns-check"
+ mailto "admins@openstreetmap.org"
end
+++ /dev/null
-# DO NOT EDIT - This file is being maintained by Chef
-
-MAILTO=admins@openstreetmap.org
-
-*/3 * * * * git /usr/local/bin/dns-check
template "apache.erb"
end
-template "/etc/cron.d/osmf-donate" do
- source "cron.erb"
- owner "root"
- group "root"
- mode 0o600
- variables :passwords => passwords
+cron_d "osmf-donate" do
+ minute "*/2"
+ user "donate"
+ command "cd /srv/donate.openstreetmap.org/scripts/; /usr/bin/php /srv/donate.openstreetmap.org/scripts/update_csv_donate2016.php"
end
template "/etc/cron.daily/osmf-donate-backup" do
+++ /dev/null
-# DO NOT EDIT - This file is being maintained by Chef
-*/2 * * * * donate cd /srv/donate.openstreetmap.org/scripts/; /usr/bin/php /srv/donate.openstreetmap.org/scripts/update_csv_donate2016.php
variables :certificates => certificates
end
-template "/etc/cron.d/letsencrypt" do
- source "cron.erb"
- owner "root"
- group "root"
- mode 0o644
+cron_d "letencrypt-renew" do
+ minute "00"
+ hour "*/12"
+ user "letsencrypt"
+ command "/srv/acme.openstreetmap.org/bin/renew"
+ mailto "admins@openstreetmap.org"
+end
+
+cron_d "letencrypt-check" do
+ minute "30"
+ hour "*/12"
+ user "letsencrypt"
+ command "/srv/acme.openstreetmap.org/bin/check-certificates"
+ mailto "admins@openstreetmap.org"
end
+++ /dev/null
-# DO NOT EDIT - This file is being maintained by Chef
-
-MAILTO=admins@openstreetmap.org
-
-00 */12 * * * letsencrypt /srv/acme.openstreetmap.org/bin/renew
-30 */12 * * * letsencrypt /srv/acme.openstreetmap.org/bin/check-certificates