]> git.openstreetmap.org Git - chef.git/commitdiff
Merge remote-tracking branch 'github/pull/508'
authorTom Hughes <tom@compton.nu>
Sun, 10 Jul 2022 18:44:07 +0000 (19:44 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 10 Jul 2022 18:44:07 +0000 (19:44 +0100)
cookbooks/dev/recipes/default.rb
cookbooks/hardware/attributes/default.rb
cookbooks/nominatim/recipes/version4.rb
cookbooks/planet/recipes/replication.rb
cookbooks/supybot/templates/default/git.conf.erb
roles/balerion.rb
roles/bowser.rb
roles/pummelzacken.rb
roles/pyrene.rb

index 679ff6b4cff2b3b82dd7b85ebcdf99254a2f3b1a..513cee8036f76c0c6adf61474fbfff089a75b26a 100644 (file)
@@ -71,6 +71,7 @@ package %w[
   libpqxx-dev
   libcrypto++-dev
   libyajl-dev
+  libfmt-dev
   zlib1g-dev
 ]
 
index ff33c73b5340d1a23c0cfcb840e3f4247168abde..d2c1b36bd22c90d244dd9876ea7a934da104b035 100644 (file)
@@ -58,7 +58,12 @@ if File.exist?("/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor") &&
   default[:sysfs][:cpufreq_ondemand][:parameters][:"devices/system/cpu/cpufreq/ondemand/sampling_down_factor"] = "100"
 end
 
-if File.exist?("/sys/devices/system/cpu/cpu0/power/energy_perf_bias")
+energy_perf_bias = Dir.glob("/sys/devices/system/cpu/cpu*/power/energy_perf_bias")
+
+unless energy_perf_bias.empty?
   default[:sysfs][:cpu_power_energy_perf_bias][:comment] = "Set CPU Energy-Performance Bias Preference to performance"
-  default[:sysfs][:cpu_power_energy_perf_bias][:parameters][:"devices/system/cpu/cpu*/power/energy_perf_bias"] = "0"
+
+  energy_perf_bias.sort.each do |path|
+    default[:sysfs][:cpu_power_energy_perf_bias][:parameters][path.sub(%r{^/sys/}, "")] = "0"
+  end
 end
index c9bdf471eed2339691c951f97bc6a0fe913c60f1..7b218d9511324d6b876286bdb7a4ba79925f2072 100644 (file)
@@ -285,7 +285,7 @@ frontends = search(:node, "recipes:web\\:\\:frontend").sort_by(&:name)
 
 nginx_site "nominatim" do
   template "nginx.erb"
-  directory build_directory
+  directory project_directory
   variables :pools => node[:nominatim][:fpm_pools],
             :frontends => frontends,
             :confdir => "#{basedir}/etc",
index 0a9387d19ca0237f544a44663ad1c06e052d9e8f..a31f98288c3217f71152552f95be266f777a64c7 100644 (file)
@@ -317,6 +317,7 @@ systemd_service "replication-hourly" do
   description "Hourly replication"
   user "planet"
   exec_start "/usr/local/bin/osmosis -q --merge-replication-files workingDirectory=/var/lib/replication/hour"
+  environment "LD_PRELOAD" => "/opt/flush/flush.so"
   private_tmp true
   private_devices true
   protect_system "full"
@@ -360,6 +361,7 @@ systemd_service "replication-daily" do
   description "Daily replication"
   user "planet"
   exec_start "/usr/local/bin/osmosis -q --merge-replication-files workingDirectory=/var/lib/replication/day"
+  environment "LD_PRELOAD" => "/opt/flush/flush.so"
   private_tmp true
   private_devices true
   protect_system "full"
index a410105ce21aafdc3d2b3f47d193c811b2c27be3..cb418b60d2c5d3b66ba14e8242a3717166671da9 100644 (file)
@@ -226,7 +226,7 @@ commit message = [%s|%b|%a] %m %l
 short name = vespucci
 url = https://github.com/MarcusWolschon/osmeditor4android.git
 branch = master
-commit link = https://github.com//MarcusWolschon/osmeditor4android/commit/%c
+commit link = https://github.com/MarcusWolschon/osmeditor4android/commit/%c
 channels = #osm-dev
 commit message = [%s|%b|%a] %m %l
 
index 2a168171a70769cd5e333217b3bcddfbe39468dd..56b88cc39198b8c3c34245874a563e0298028047 100644 (file)
@@ -37,7 +37,7 @@ default_attributes(
   },
   :tile => {
     :database => {
-      :cluster => "12/main",
+      :cluster => "14/main",
       :postgis => "3"
     },
     :mapnik => "3.1",
index 8cc8954b6521a9fd49a2ef9c7e8b55d0c12ad86c..1789c10966b371d78bd7222191f5985aa8272672 100644 (file)
@@ -37,7 +37,7 @@ default_attributes(
   },
   :tile => {
     :database => {
-      :cluster => "12/main",
+      :cluster => "14/main",
       :postgis => "3"
     },
     :mapnik => "3.1",
index a3dbedfb7534498f10f13f29413fdf0bbb589e38..36140c371374383a91d657ecabb5100d499367ca 100644 (file)
@@ -31,12 +31,12 @@ default_attributes(
         :listen_addresses => "10.0.0.20",
         :work_mem => "160MB",
         :effective_io_concurrency => "256",
-        :fsync => "off"
+        :fsync => "on"
       }
     }
   },
   :nominatim => {
-    :state => "off",
+    :state => "standalone",
     :dbcluster => "14/main",
     :postgis => "3",
     :enable_backup => true,
index 2d9c8dbfc87c9f5e42cf708e8f0391746abdbf2f..ff1b2fc4b7519542f53064652097ee3026db9fc0 100644 (file)
@@ -56,7 +56,7 @@ default_attributes(
   },
   :tile => {
     :database => {
-      :cluster => "12/main",
+      :cluster => "14/main",
       :postgis => "3"
     },
     :mapnik => "3.1",