X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1f9a29e366bb094a88c056a961163bb524e3f68b..d6c3c3bc6b45204974784125bd0843a0b28ce9aa:/cookbooks/dev/recipes/default.rb 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