X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7b30c7f52f3093e1373b591f0174a628d334d544..5f6c31a1fa2ffa34a8d2ce071d8e539f74282817:/cookbooks/civicrm/recipes/default.rb diff --git a/cookbooks/civicrm/recipes/default.rb b/cookbooks/civicrm/recipes/default.rb index a7c9ed894..5d0736e8b 100644 --- a/cookbooks/civicrm/recipes/default.rb +++ b/cookbooks/civicrm/recipes/default.rb @@ -54,19 +54,13 @@ end wordpress_theme "osmblog-wp-theme" do site "join.osmfoundation.org" - repository "https://github.com/harry-wood/osmblog-wp-theme.git" + repository "https://github.com/osmfoundation/osmblog-wp-theme.git" end wordpress_plugin "registration-honeypot" do site "join.osmfoundation.org" end -wordpress_plugin "sitepress-multilingual-cms" do - site "join.osmfoundation.org" - repository "https://git.openstreetmap.org/private/sitepress-multilingual-cms.git" - not_if { kitchen? } -end - wordpress_plugin "contact-form-7" do site "join.osmfoundation.org" end @@ -179,11 +173,24 @@ file "#{civicrm_directory}/civicrm.settings.php" do content settings end -cron_d "osmf-crm" do - minute "*/15" +systemd_service "osmf-crm-jobs" do + description "Run CRM jobs" + exec_start "/usr/bin/php #{civicrm_directory}/civicrm/bin/cli.php -s join.osmfoundation.org -u batch -p \"#{passwords['batch']}\" -e Job -a execute" 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" + sandbox :enable_network => true + memory_deny_write_execute false + restrict_address_families "AF_UNIX" + read_write_paths "/srv/join.osmfoundation.org/wp-content/uploads/civicrm" +end + +systemd_timer "osmf-crm-jobs" do + description "Run CRM jobs" + on_boot_sec "15m" + on_unit_inactive_sec "15m" +end + +service "osmf-crm-jobs.timer" do + action [:enable, :start] end template "/etc/cron.daily/osmf-crm-backup" do