include_recipe "apache::ssl"
include_recipe "postgresql"
-package "php5"
-package "php5-cli"
-package "php5-pgsql"
-package "php5-fpm"
+package "php"
+package "php-cli"
+package "php-pgsql"
+package "php-fpm"
package "php-pear"
-package "php-apc"
package "php-db"
apache_module "rewrite"
postgis_version = node[:nominatim][:database][:postgis]
-service "php5-fpm" do
- provider Chef::Provider::Service::Upstart
+service "php7.0-fpm" do
action [:enable, :start]
- supports :status => true, :restart => true, :reload => true
end
node[:nominatim][:fpm_pools].each do |name, data|
- template "/etc/php5/fpm/pool.d/#{name}.conf" do
+ template "/etc/php/7.0/fpm/pool.d/#{name}.conf" do
source "fpm.conf.erb"
owner "root"
group "root"
mode 0o644
variables data.merge(:name => name, :port => data[:port])
- notifies :reload, "service[php5-fpm]"
+ notifies :reload, "service[php7.0-fpm]"
end
end
package "osmosis"
package "gcc"
package "proj-bin"
-package "libgeos-c1"
+package "libgeos-c1v5"
package "postgresql-#{database_version}-postgis-#{postgis_version}"
package "postgresql-server-dev-#{database_version}"
package "build-essential"
user "nominatim"
group "nominatim"
mode 0o755
- variables :logfile => "#{node[:nominatim][:logdir]}/update.log",
+ variables :bindir => source_directory,
+ :srcdir => source_directory,
+ :logfile => "#{node[:nominatim][:logdir]}/update.log",
:branch => node[:nominatim][:revision],
:update_stop_file => "#{home_directory}/status/updates_disabled"
end