X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/39fe35336a98e698c08dc27a0306f80d1d790a53..614474a50b36944856024c28d28530c3f61755ef:/cookbooks/dev/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/dev/recipes/default.rb b/cookbooks/dev/recipes/default.rb index df10f428f..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 @@ -329,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 @@ -375,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 " @@ -446,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 @@ -516,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