X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/4191e4df92694bfffcf0c9dc5cf8d78826591408..47b636ac08ba7e76eecfbc77a399582d0f89dcb6:/cookbooks/dev/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/dev/recipes/default.rb b/cookbooks/dev/recipes/default.rb index e48ffd3e0..9ad37bfc9 100644 --- a/cookbooks/dev/recipes/default.rb +++ b/cookbooks/dev/recipes/default.rb @@ -72,6 +72,7 @@ package %w[ python3-pyproj python3-gdal gdal-bin + proj-bin g++ gcc make @@ -128,6 +129,12 @@ package %w[ pandoc ] +# Add uk_os_OSTN15_NTv2_OSGBtoETRS.tif used for reprojecting OS data +execute "uk_os_OSTN15_NTv2_OSGBtoETRS.tif" do + command "projsync --file uk_os_OSTN15_NTv2_OSGBtoETRS.tif --system-directory" + not_if { ::File.exist?("/usr/share/proj/uk_os_OSTN15_NTv2_OSGBtoETRS.tif") } +end + nodejs_package "svgo" python_package "geojson" do @@ -285,8 +292,9 @@ if node[:postgresql][:clusters][:"14/main"] nice 10 private_tmp true private_devices true - protect_system "full" + protect_system "strict" protect_home true + read_write_paths "/srv/%i.apis.dev.openstreetmap.org/logs" no_new_privileges true end @@ -299,8 +307,9 @@ if node[:postgresql][:clusters][:"14/main"] exec_reload "/bin/kill -HUP $MAINPID" private_tmp true private_devices true - protect_system "full" + protect_system "strict" protect_home true + read_write_paths ["/srv/%i.apis.dev.openstreetmap.org/logs", "/srv/%i.apis.dev.openstreetmap.org/rails/tmp"] no_new_privileges true restart "on-failure" end