X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/16a1937a7bcd39d3bf1cea2f4385005e0ddaf533..614474a50b36944856024c28d28530c3f61755ef:/cookbooks/dev/recipes/default.rb diff --git a/cookbooks/dev/recipes/default.rb b/cookbooks/dev/recipes/default.rb index 047a70d72..b8c589796 100644 --- a/cookbooks/dev/recipes/default.rb +++ b/cookbooks/dev/recipes/default.rb @@ -57,6 +57,7 @@ package %w[ php-xml pngcrush pngquant + python-is-python3 python3 python3-brotli python3-bs4 @@ -69,6 +70,7 @@ package %w[ python3-magic python3-pil python3-psycopg2 + python3-venv python3-pyproj python3-gdal gdal-bin @@ -239,7 +241,7 @@ search(:accounts, "*:*").each do |account| "memory_limit" => "128M", "post_max_size" => "32M", "upload_max_filesize" => "32M" - php_admin_values "sendmail_path" => "/usr/sbin/sendmail -t -i -f #{name}@errol.openstreetmap.org", + php_admin_values "sendmail_path" => "/usr/sbin/sendmail -t -i -f #{name}@dev.openstreetmap.org", "open_basedir" => "/home/#{name}/:/tmp/:/usr/share/php/" php_flags "display_errors" => "on" end @@ -268,9 +270,9 @@ node[:postgresql][:versions].each do |version| package "postgresql-#{version}-postgis-3" end -if node[:postgresql][:clusters][:"14/main"] +if node[:postgresql][:clusters][:"15/main"] postgresql_user "apis" do - cluster "14/main" + cluster "15/main" end template "/usr/local/bin/cleanup-rails-assets" do @@ -291,6 +293,8 @@ if node[:postgresql][:clusters][:"14/main"] restart "on-failure" nice 10 sandbox :enable_network => true + restrict_address_families "AF_UNIX" + memory_deny_write_execute false read_write_paths "/srv/%i.apis.dev.openstreetmap.org/logs" end @@ -327,12 +331,12 @@ if node[:postgresql][:clusters][:"14/main"] secret_key_base = persistent_token("dev", "rails", name, "secret_key_base") postgresql_database database_name do - cluster "14/main" + cluster "15/main" owner "apis" end postgresql_extension "#{database_name}_btree_gist" do - cluster "14/main" + cluster "15/main" database database_name extension "btree_gist" end @@ -373,7 +377,7 @@ if node[:postgresql][:clusters][:"14/main"] group "apis" repository details[:repository] revision details[:revision] - database_port node[:postgresql][:clusters][:"14/main"][:port] + database_port node[:postgresql][:clusters][:"15/main"][:port] database_name database_name database_username "apis" email_from "OpenStreetMap " @@ -444,7 +448,7 @@ if node[:postgresql][:clusters][:"14/main"] group "root" mode "640" variables :cgimap_port => cgimap_port, - :database_port => node[:postgresql][:clusters][:"14/main"][:port], + :database_port => node[:postgresql][:clusters][:"15/main"][:port], :database_name => database_name, :log_directory => log_directory end @@ -514,7 +518,7 @@ if node[:postgresql][:clusters][:"14/main"] postgresql_database database_name do action :drop - cluster "14/main" + cluster "15/main" end end end