]> git.openstreetmap.org Git - chef.git/commitdiff
Merge remote-tracking branch 'github/pull/740'
authorTom Hughes <tom@compton.nu>
Thu, 20 Feb 2025 08:45:06 +0000 (08:45 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 20 Feb 2025 08:45:06 +0000 (08:45 +0000)
18 files changed:
cookbooks/bind/templates/default/db.10.erb
cookbooks/dev/templates/default/apache.rails.erb
cookbooks/dhcpd/templates/default/dhcpd.conf.erb
cookbooks/imagery/recipes/tiler.rb
cookbooks/imagery/recipes/za_ngi_topo.rb
cookbooks/imagery/resources/site.rb
cookbooks/imagery/templates/default/nginx_imagery.conf.erb
cookbooks/imagery/templates/default/nginx_titiler.conf.erb
cookbooks/openssh/templates/default/ssh_known_hosts.erb
cookbooks/ruby/resources/bundle_config.rb [new file with mode: 0644]
cookbooks/stateofthemap/recipes/container.rb
cookbooks/systemd/resources/service.rb
cookbooks/systemd/templates/default/service.erb
cookbooks/web/resources/rails_port.rb
cookbooks/web/templates/default/apache.frontend.erb
roles/fafnir.rb
roles/imagery.rb
roles/lockheed.rb

index 06aef6442d021fd2024c90c82c03220dded6b910..298811c68fe5fc0a475d602ad2ec78545cbe91f6 100644 (file)
@@ -2,7 +2,7 @@
 
 $TTL   604800
 @      IN      SOA     <%= node[:fdqn] %>. root.openstreetmap.org. (
-                     2021092001                ; Serial
+                     2025021801                ; Serial
                          604800                ; Refresh
                           86400                ; Retry
                         2419200                ; Expire
@@ -44,6 +44,7 @@ $TTL  604800
 100.48.0       IN      PTR     pdu1.ams.openstreetmap.org.
 101.48.0       IN      PTR     pdu2.ams.openstreetmap.org.
 102.48.0       IN      PTR     oob1.ams.openstreetmap.org.
+103.48.0       IN      PTR     ats1.ams.openstreetmap.org.
 
 3.49.0         IN      PTR     faffy.oob.openstreetmap.org.
 4.49.0         IN      PTR     dribble.oob.openstreetmap.org.
index 957866c5c482473e12a185a378d3567a38fe6137..082931dde60e7897cf5c71e814fe42118f71019b 100644 (file)
@@ -48,6 +48,7 @@
         RewriteRule ^/api/0\.6/(node|way|relation)/[0-9]+/relations(\.json|\.xml)?$ unix:<%= @cgimap_socket %>|fcgi://127.0.0.1$0 [P]
         RewriteRule ^/api/0\.6/node/[0-9]+/ways(\.json|\.xml)?$ unix:<%= @cgimap_socket %>|fcgi://127.0.0.1$0 [P]
         RewriteRule ^/api/0\.6/(way|relation)/[0-9]+/full(\.json|\.xml)?$ unix:<%= @cgimap_socket %>|fcgi://127.0.0.1$0 [P]
+        RewriteCond %{REQUEST_METHOD} ^(HEAD|GET)$
         RewriteRule ^/api/0\.6/(nodes|ways|relations)(\.json|\.xml)?$ unix:<%= @cgimap_socket %>|fcgi://127.0.0.1$0 [P]
         RewriteRule ^/api/0\.6/changeset/[0-9]+/(upload|download)(\.json|\.xml)?$ unix:<%= @cgimap_socket %>|fcgi://127.0.0.1$0 [P]
 <% end -%>
index 1581475e529310e74a814b42af4f327ccc81aee1..ed4fe2d0356b135cfbc10146cf444625737f9df1 100644 (file)
@@ -55,6 +55,12 @@ host pdu2.ams.openstreetmap.org {
   fixed-address 10.0.48.101;
 }
 
+host ats1.ams.openstreetmap.org {
+  hardware ethernet 00:c0:b7:e5:5e:f1;
+  server-name "ats1.ams.openstreetmap.org";
+  fixed-address 10.0.48.103;
+}
+
 host oob1.dub.openstreetmap.org {
   hardware ethernet 62:bd:62:a6:05:25;
   server-name "oob1.dub.openstreetmap.org";
index 319cb5794a749e11a70fc90665def050786b8f11..571425bdaf8f619be986839dcce46bacad5510b1 100644 (file)
@@ -63,7 +63,7 @@ end
 
 systemd_timer "titiler-restart" do
   on_boot_sec "10m"
-  on_unit_inactive_sec "30m"
+  on_unit_inactive_sec "2h"
   randomized_delay_sec "20m"
 end
 
index a1fd92c619c7e55d97bc816571124c9dbab3c9a6..ac5a28b37018386d0eba213975bb3c02d688684c 100644 (file)
@@ -32,6 +32,7 @@ imagery_layer "za_ngi_topo_250k" do
   source "/store/imagery/za/ngi-topo-250k/ngi-topo-250k-combined.vrt"
   copyright 'State Copyright &copy; 1996&ndash;2010 <a href="https://ngi.dalrrd.gov.za/">Chief Directorate: National Geo-spatial Information</a>'
   default_layer true
+  revision 2
 end
 
 imagery_layer "za_ngi_topo_50k" do
@@ -40,4 +41,5 @@ imagery_layer "za_ngi_topo_50k" do
   projection "EPSG:3857"
   source "/store/imagery/za/ngi-topo-50k/ngi-topo-50k-combined.vrt"
   copyright 'State Copyright &copy; 1996&ndash;2013 <a href="https://ngi.dalrrd.gov.za/">Chief Directorate: National Geo-spatial Information</a>'
+  revision 2
 end
index 6a20594c79d2204a017b419c505a4f6017f46e00..7151c68c60ad2fc01d6044a54040820b33e7c9bf 100644 (file)
@@ -112,6 +112,7 @@ action :create do
     limit_nofile 16384
     memory_high "12G"
     memory_max "12G"
+    limit_core 0
     user "imagery"
     group "imagery"
     exec_start "/usr/bin/multiwatch -f 8 --signal=TERM -- /usr/lib/cgi-bin/mapserv"
index 03a439343b57bb7b3dac7bb1855687901f5b5a9d..a232d783011c88dba3dfb77ebaa01f427d70f79b 100644 (file)
@@ -23,8 +23,11 @@ upstream <%= @name %>_fastcgi {
 <% end -%>
 
 server {
-    listen 443 ssl http2;
-    listen [::]:443 ssl http2;
+    listen 443 ssl;
+    listen [::]:443 ssl;
+
+    http2 on;
+
     server_name <%= @name %> a.<%= @name %> b.<%= @name %> c.<%= @name %><% @aliases.each do |alias_name| %> <%= alias_name %> a.<%= alias_name %> b.<%= alias_name %> c.<%= alias_name %><%- end -%>;
 
     http2_max_concurrent_streams 512;
index 155620949e425fe688692b5ee2a50a5c897e5c82..055c2f849258dd23266025a72ee3799cfcbff7bf 100644 (file)
@@ -21,8 +21,11 @@ upstream titiler_api_backend {
 }
 
 server {
-    listen 443 ssl http2;
-    listen [::]:443 ssl http2;
+    listen 443 ssl;
+    listen [::]:443 ssl;
+
+    http2 on;
+
     server_name <%= @name %> <% @aliases.each do |alias_name| %> <%= alias_name %><%- end -%>;
 
     http2_max_concurrent_streams 512;
index c2d996a75d7e9befce9463c6eb73be54e9d71efe..e0f173c062beca098a0a5f3fcb36e02531c9d887 100644 (file)
@@ -20,11 +20,12 @@ yevaud.oob.openstreetmap.org,yevaud.oob,10.0.1.15 ssh-rsa AAAAB3NzaC1yc2EAAAABIw
 switch1.ams.openstreetmap.org,switch1.ams,184.104.179.129,2001:470:1:fa1::1 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCbUecW/591rGCYtkdVTUgAKTBc+lEhraeMCau7CHqMkkUn+/pe68toDySdTaO8jua1q1asuEWH3MZ2AGAPSF+xhrqJLLPQmm0WdEAQfZChxQUoqCPqlWAuM5u+bAc3ntKjw2v2myoGGAqjL27QkZDP8qPdxvKcbm2YpPVOHP56jsyp/9BjVhIpWVmMhkOAfBSjdKU+uP+NueHrJ/AueoqucQE0txeo5Mmw7GlRuLTsMNDU3Khlhjs/2Q0QGiMXV6hQxj5AgnaDZMdSRbp8lXlctDZmipr7jVk3TL+knzySih5wJ7wmeZimW8Dhcxk6HBo2lGgPGdtQgttCF5ZUGcfF
 switch1.ams.openstreetmap.org,switch1.ams,184.104.179.129,2001:470:1:fa1::1 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFPNVsMuGWMe2OP9AIg0hqZLSJP8zyNHWqYrXd5Mnfr12XdhzWEAKLTD14ZnJcz/GBaE0ad3IjT+hVoS/GVtxpQ=
 switch1.ams.openstreetmap.org,switch1.ams,184.104.179.129,2001:470:1:fa1::1 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA615MNtLzOv6qPfFsD0I6Pd0itshpHLAVImjt1ME4SM
-oob1.ams.openstreetmap.org,oob1.ams,10.0.48.102 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC2oeoe4olettjDauLuRiXRQVg5k6EO+PFfS9Ho3OzlOeYr1+h1SSPLkFtr20yOKcGXQcmYLjTbzvt/sbz2JUbfJHc2n7tMvQKK5ClVxLwqt2jpfSepGbG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kdhxudRUL2eWvBs3v1kcY3Ywtxi+wQIqClvQgBkWrHe4Jujjl8EEFuGHh6156Al7WqEnC9EcENA5Lk/IM0lzDbeT+WTyO/qU8cu035hmPMydYBHjqzo5L6yDwFXEAtJpHlr8QQDzEwgtK9bXc453cQDEJW4JWjP7UlsTlbflSBGQrY5FpI8D+MgnDYNld2kD4Fxzomf4ne+M0w19jrtNMJuE=
+oob1.ams.openstreetmap.org,oob1.ams,10.0.48.102 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPkUAdFYwolSkUs7d1k+mRVBCV7WRrKsebj8RbjLqPCmEQo9ABSy2iAuYOYgkkqlgmB8F8OHsnNtmGzx7smCwAU=
+oob1.ams.openstreetmap.org,oob1.ams,10.0.48.102 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKVdlLkjFUDExO7YCixEWvaKHGS0IQHn2nBrkMjGTwRx
+ats1.ams.openstreetmap.org,ats1.ams,10.0.48.103 ssh-rsa AAAAB3NzaC1yc2EAAAACAQEAAAEBAKnx+hwj8Am4DuYXZLK1whHqOjW4Bbs/KrLqFokoZgJxzp1g+6sOAzXPy8w3dYyHBJaXCmr3RisIhG7fj0pITkywhU8ygiaEHDzPFyGqxVYe1oI3ayE47hC14Jhu33p7F+pY1xEVUa2H3Xu4F8toHnmuIjLAJ9phaEVvnjLl5n47dM1VfB5KB4NvuDejBthaZpgbALainUuKaqUL2Wgb0LxbDFRTQ+r6uUY4SEFnfqwveovdBL/edd+14/yRob0/r6zlubi5PhvMH1rCaE7flFNr61LItz06VAs+vZpLTNTIFXHqAtCjIA6e8VvvOn8wwmjxXKLsUOFZipvW9Uc9kTk=
 faffy.oob.openstreetmap.org,faffy.oob,10.0.49.3 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCuL6kBDuK+/xj40jp4ZP9HVoH1enU1W9MWO4Q0cxlD9sjHaz/mIbLhtPxElrw807QLsUdOx1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Z6/4+Qdql5B8z8twz
 dulcy.oob.openstreetmap.org,dulcy.oob,10.0.49.9 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgmlwXGPIPDqoMz4s5edr+G4iuBnCYcFXjY7Et9jG/ezI6aIKd9lEOXvnHJX5hrC21aqd06dhyMLwZN+eSjJhXNaLtYmm5P442H2ZnGca1KNSpF7yRVhn0eRpX39xWK3biVfMw64mzvV3636C1adCkgBwuaqCvz1EHm/KRrySfuETFLU=
 spike-06.oob.openstreetmap.org,spike-06.oob,10.0.49.6 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDwQVb/cYgKp21vw6+jKr5TLAD77oKunbFbjvwPL34iLRDqdJcEOdJBV1A63ZDUWSWjDUrTa0kyneoiYdD876EpuspZ4bPgmiHBvug5NR3usxa8PAsia1K+fONAGi3+s96H6Us273KHNH5QwyBNDyYaDDjIECkydU4bQT0FSX0j32eAHI62ZO/H82fUyL20PIK/nCUaJUd+5iXgcTfjP+eL66ghgPCgXGF99/w2+3EUxP2IN9J2yI57H/rYn3rj+NdZyQuzc0TAToT341cYh2+a8R1Sb/DEFiMZFE2hJ2NeVEaBYxPSlFfhRtlB6ArXg5QL7e7UScQh/ZHLU26A1ZaB
 spike-07.oob.openstreetmap.org,spike-07.oob,10.0.49.7 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxLxAbMPZw+LgzB8JmTLLxqc6CZXYA3Wo18RM02+EnmtRX6AAf/VFb7E/VpgHfZecwnFK7u21R47+fFdHCb8EDYGeWbOYoEOYMoDh26H8/aFPHbldgG0xs9EwfTryWB7iZ2sD9nLv+nBpDkFXVq53kscmDlUKQrvUyj/zR55xGxcq0ruu3w05ZeGx5I6HRY0xeK+6H4s6sZtF24Zm3CttQ5M7ADgWffE35ZwA9tEdioM3J3c5EcV4HMdhl7wame6pID9+FpDEtcts5z5sfW9Y0yx3FHrXCxRWxHRbyFG9/+4RNwKJBRZrdb+VSLlrYVUFLEfb1AhOxr8ZfSsJU1V0V
diff --git a/cookbooks/ruby/resources/bundle_config.rb b/cookbooks/ruby/resources/bundle_config.rb
new file mode 100644 (file)
index 0000000..6c1eae6
--- /dev/null
@@ -0,0 +1,62 @@
+#
+# Cookbook:: ruby
+# Resource:: bundle_config
+#
+# Copyright:: 2025, OpenStreetMap Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+resource_name :bundle_config
+provides :bundle_config
+
+unified_mode true
+
+default_action :create
+
+property :directory, :kind_of => String, :name_property => true
+property :user, :kind_of => String
+property :group, :kind_of => String
+property :settings, :kind_of => Hash
+
+load_current_value do |new_resource|
+  current_settings = shell_out!("#{node[:ruby][:bundle]} config list --parseable", :cwd => new_resource.directory).stdout.split("\n").map do |line|
+    line.split("=")
+  end.to_h
+
+  settings current_settings
+end
+
+action :create do
+  converge_if_changed :settings do
+    new_resource.settings.each do |name, value|
+      execute "bundle-config-set-#{name}" do
+        command "#{bundle_command} config set --local #{name} #{value}"
+        cwd new_resource.directory
+        user new_resource.user
+        group new_resource.group
+      end
+    end
+  end
+end
+
+action_class do
+  def bundle_command
+    node[:ruby][:bundle]
+  end
+end
+
+def after_created
+  subscribes :run, "gem_package[bundler#{node[:ruby][:version]}-1]"
+  subscribes :run, "gem_package[bundler#{node[:ruby][:version]}-2]"
+end
index 3b5bd38b9fd916503a92220655804d6ea3638582..8e97accc0b6d7df1256e8358a8534c4a95d1a969 100644 (file)
@@ -24,7 +24,7 @@ podman_site "stateofthemap.org" do
   aliases ["www.stateofthemap.org", "stateofthemap.com", "www.stateofthemap.com", "sotm.org", "www.sotm.org"]
 end
 
-%w[2007 2008 2009 2013 2016 2017 2018 2019 2020 2021 2022 2024].each do |year|
+%w[2007 2008 2009 2013 2016 2017 2018 2019 2020 2021 2022 2024 2025].each do |year|
   podman_site "#{year}.stateofthemap.org" do
     image "ghcr.io/openstreetmap/stateofthemap-#{year}:latest"
     aliases ["#{year}.stateofthemap.com", "#{year}.sotm.org"]
index 11ca0e28c9246384a6e8d8b674fbc51a59e6ccb2..8b380c306699be039fd145fcb8b1577d88ad4c51 100644 (file)
@@ -36,6 +36,7 @@ property :notify_access, String, :is => %w[none main exec all]
 property :limit_nofile, Integer
 property :limit_as, [Integer, String]
 property :limit_cpu, [Integer, String]
+property :limit_core, [Integer, String]
 property :memory_low, [Integer, String]
 property :memory_high, [Integer, String]
 property :memory_max, [Integer, String]
index 92d70de85b3dabe7bf7de934dfcb48eb906884a1..eee220691166b2cfafa7ea43c822923bde5da76d 100644 (file)
@@ -45,6 +45,9 @@ LimitAS=<%= @limit_as %>
 <% if @limit_cpu -%>
 LimitCPU=<%= @limit_cpu %>
 <% end -%>
+<% if @limit_core -%>
+LimitCORE=<%= @limit_core %>
+<% end -%>
 <% if @memory_low -%>
 MemoryLow=<%= @memory_low %>
 <% end -%>
index debc4db50c1133d3f9f66f0a22567cc0a7606f9d..6816904521e6f8a5ddcf1b81afe9d1f72d24de02 100644 (file)
@@ -408,11 +408,25 @@ action :create do
     action :delete
   end
 
+  directory "#{rails_directory}/vendor/bundle/ruby/#{node[:ruby][:version]}.0" do
+    owner new_resource.user
+    group new_resource.group
+    mode "775"
+    recursive true
+  end
+
+  bundle_config "#{rails_directory}" do
+    user new_resource.user
+    group new_resource.group
+    settings "deployment" => "true",
+             "build.nokogiri" => "--use-system-libraries"
+  end
+
   bundle_install "#{rails_directory}" do
     action :nothing
-    user "root"
-    group "root"
-    environment "NOKOGIRI_USE_SYSTEM_LIBRARIES" => "yes"
+    user new_resource.user
+    group new_resource.group
+    subscribes :run, "directory[#{rails_directory}/vendor/bundle/ruby/#{node[:ruby][:version]}.0]"
     subscribes :run, "git[#{rails_directory}]"
   end
 
index 39f2a6007118589c89b429af84ad23ca7087bb79..98097d7d92c8c05d92f80a4180177797b117228b 100644 (file)
@@ -186,6 +186,7 @@ ErrorLog /var/log/apache2/error.log
   RewriteRule ^/api/0\.6/(node|way|relation)/[0-9]+/relations(\.json|\.xml)?$ unix:/run/cgimap/socket|fcgi://127.0.0.1$0 [P]
   RewriteRule ^/api/0\.6/node/[0-9]+/ways(\.json|\.xml)?$ unix:/run/cgimap/socket|fcgi://127.0.0.1$0 [P]
   RewriteRule ^/api/0\.6/(way|relation)/[0-9]+/full(\.json|\.xml)?$ unix:/run/cgimap/socket|fcgi://127.0.0.1$0 [P]
+  RewriteCond %{REQUEST_METHOD} ^(HEAD|GET)$
   RewriteRule ^/api/0\.6/(nodes|ways|relations)(\.json|\.xml)?$ unix:/run/cgimap/socket|fcgi://127.0.0.1$0 [P]
   RewriteRule ^/api/0\.6/changeset/[0-9]+/(upload|download)(\.json|\.xml)?$ unix:/run/cgimap/socket|fcgi://127.0.0.1$0 [P]
 
index 7ca7094bc505779dd581478f7edfd388a8a83c73..8d39c9e916109d525f8c6f2bbb41be3a708db969 100644 (file)
@@ -7,7 +7,7 @@ default_attributes(
     :last_address => "10.0.79.254"
   },
   :exim => {
-    :external_interface => "<;${if <{${randint:100}}{75} {184.104.226.98;2001:470:1:b3b::2}{87.252.214.98;2001:4d78:fe03:1c::2}}",
+    :external_interface => "<;${if <{${randint:100}}{50} {184.104.226.98;2001:470:1:b3b::2}{87.252.214.98;2001:4d78:fe03:1c::2}}",
     :routes => {
       :openstreetmap => {
         :comment => "openstreetmap.org",
index f024515a927bdfe43bba7ad9e24456ee3a9d6050..4a4a033a329e62af6c709dddb828a2615fbf378e 100644 (file)
@@ -20,16 +20,6 @@ default_attributes(
         "net.core.somaxconn" => 10000
       }
     }
-  },
-  :nginx => {
-    :cache => {
-      :fastcgi => {
-        :enable => true,
-        :keys_zone => "fastcgi_cache_zone:256M",
-        :inactive => "45d",
-        :max_size => "51200M"
-      }
-    }
   }
 )
 
index 09eddcc8b375d10b49804fd43a1b8c1dc1a135a5..bad0a5b7b266eea84cdf0283bbc1d894f2e6429b 100644 (file)
@@ -85,11 +85,17 @@ default_attributes(
   },
   :nginx => {
     :cache => {
+      :fastcgi => {
+        :enable => true,
+        :keys_zone => "fastcgi_cache_zone:2048M",
+        :inactive => "180d",
+        :max_size => "196608M"
+      },
       :proxy => {
           :enable => true,
-          :keys_zone => "proxy_cache_zone:256M",
+          :keys_zone => "proxy_cache_zone:2048M",
           :inactive => "180d",
-          :max_size => "51200M"
+          :max_size => "196608M"
       }
     }
   }