X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/cb1de50da93f13d84cba116bf202630c33371a01..9506b2a9f6cfc2bf3fcf41b0ac351f7af0a9b4ab:/cookbooks/civicrm/recipes/default.rb diff --git a/cookbooks/civicrm/recipes/default.rb b/cookbooks/civicrm/recipes/default.rb index 797b05352..a8881fc0d 100644 --- a/cookbooks/civicrm/recipes/default.rb +++ b/cookbooks/civicrm/recipes/default.rb @@ -21,9 +21,12 @@ include_recipe "wordpress" include_recipe "mysql" package %w[ + php-xml + php-curl rsync unzip wkhtmltopdf + php-bcmath ] cache_dir = Chef::Config[:file_cache_path] @@ -46,6 +49,7 @@ wordpress_site "join.osmfoundation.org" do database_name "civicrm" database_user "civicrm" database_password database_password + fpm_prometheus_port 11301 end wordpress_theme "osmblog-wp-theme" do @@ -67,6 +71,10 @@ wordpress_plugin "contact-form-7" do site "join.osmfoundation.org" end +wordpress_plugin "civicrm-admin-utilities" do + site "join.osmfoundation.org" +end + civicrm_version = node[:civicrm][:version] civicrm_directory = "/srv/join.osmfoundation.org/wp-content/plugins/civicrm" @@ -140,7 +148,6 @@ node[:civicrm][:extensions].each_value do |details| action :sync repository details[:repository] revision details[:revision] - depth 1 user "wordpress" group "wordpress" end @@ -160,7 +167,6 @@ settings = edit_file "#{civicrm_directory}/civicrm/templates/CRM/common/civicrm. line.gsub!(/%%templateCompileDir%%/, "/srv/join.osmfoundation.org/wp-content/uploads/civicrm/templates_c/") line.gsub!(/%%baseURL%%/, "http://join.osmfoundation.org/") line.gsub!(/%%siteKey%%/, site_key) - line.gsub!(%r{// *(.*'ext_repo_url'.*)$}, "\\1") line.gsub!(%r{// *define\('CIVICRM_CMSDIR', '/path/to/install/root/'\);}, "define('CIVICRM_CMSDIR', '/srv/join.osmfoundation.org');") line