]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dev/recipes/default.rb
Drop wireguard tunnels from shenron to data centres
[chef.git] / cookbooks / dev / recipes / default.rb
index 047a70d72115ea0ce1e9f67bd4bfa3b475f249f3..a9e85008ef13eed4b99f5d905d768c729eb3f836 100644 (file)
@@ -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
@@ -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