X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/08e8b63150703826141d47c582498989f0e0f832..22bfa5e6f8152e492f21ae2c972a164474cfdd61:/cookbooks/nominatim/recipes/default.rb diff --git a/cookbooks/nominatim/recipes/default.rb b/cookbooks/nominatim/recipes/default.rb index 929645f38..5e1f19d60 100644 --- a/cookbooks/nominatim/recipes/default.rb +++ b/cookbooks/nominatim/recipes/default.rb @@ -17,7 +17,9 @@ # limitations under the License. # +include_recipe "accounts" include_recipe "munin" +include_recipe "php::fpm" basedir = data_bag_item("accounts", "nominatim")["home"] email_errors = data_bag_item("accounts", "lonvia")["email"] @@ -166,8 +168,6 @@ package %w[ python3-pyosmium pyosmium python3-psycopg2 - php - php-fpm php-pgsql php-intl ] @@ -312,7 +312,7 @@ directory "#{basedir}/etc" do mode 0o775 end -%w[user_agent referer email].each do |name| +%w[user_agent referrer email].each do |name| file "#{basedir}/etc/nginx_blocked_#{name}.conf" do action :create_if_missing owner "nominatim" @@ -321,19 +321,10 @@ end end end -service "php7.2-fpm" do - action [:enable, :start] - supports :status => true, :restart => true, :reload => true -end - node[:nominatim][:fpm_pools].each do |name, data| - template "/etc/php/7.2/fpm/pool.d/#{name}.conf" do - source "fpm.conf.erb" - owner "root" - group "root" - mode 0o644 + php_fpm name do + template "fpm.conf.erb" variables data.merge(:name => name) - notifies :reload, "service[php7.2-fpm]" end end