X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/9b180c8f97133f80c6fd858e32728c8f1efd2768..ff14db18dc25c183adff0b7bf651943253405284:/cookbooks/dev/recipes/default.rb diff --git a/cookbooks/dev/recipes/default.rb b/cookbooks/dev/recipes/default.rb index d623d05ff..29ff0086f 100644 --- a/cookbooks/dev/recipes/default.rb +++ b/cookbooks/dev/recipes/default.rb @@ -34,15 +34,23 @@ include_recipe "python" include_recipe "ruby" package %w[ + composer + php-apcu php-cgi php-cli php-curl php-db + php-gd + php-igbinary php-imagick + php-intl + php-mbstring + php-memcache php-mysql php-pear php-pgsql php-sqlite3 + php-xml pngcrush pngquant python3 @@ -73,6 +81,8 @@ package %w[ libyajl-dev libfmt-dev zlib1g-dev + nano + osm2pgsql ] nodejs_package "svgo" @@ -204,6 +214,10 @@ search(:accounts, "*:*").each do |account| end end +node[:postgresql][:versions].each do |version| + package "postgresql-#{version}-postgis-3" +end + if node[:postgresql][:clusters][:"14/main"] postgresql_user "apis" do cluster "14/main" @@ -220,10 +234,12 @@ if node[:postgresql][:clusters][:"14/main"] systemd_service "rails-jobs@" do description "Rails job queue runner" type "simple" + environment "RAILS_ENV" => "production", "SLEEP_DELAY" => "60" user "apis" working_directory "/srv/%i.apis.dev.openstreetmap.org/rails" exec_start "#{node[:ruby][:bundle]} exec rails jobs:work" restart "on-failure" + nice 10 private_tmp true private_devices true protect_system "full"