]> git.openstreetmap.org Git - chef.git/commitdiff
stateofthemap: Fix Mac ARM compatibility (kitchen)
authorGrant Slater <github@firefishy.com>
Fri, 2 Dec 2022 19:13:58 +0000 (19:13 +0000)
committerGrant Slater <github@firefishy.com>
Fri, 2 Dec 2022 19:13:58 +0000 (19:13 +0000)
cookbooks/stateofthemap/recipes/jekyll.rb

index e286f2f7cb4fb9915a9c324c88cd1432a47750a3..fa2545e5fedbb466c6f3bdaed9186c81e9447320 100644 (file)
@@ -58,7 +58,7 @@ apache_module "rewrite"
 
   bundle_install "/srv/#{year}.stateofthemap.org" do
     action :nothing
 
   bundle_install "/srv/#{year}.stateofthemap.org" do
     action :nothing
-    options "--deployment --jobs #{node[:cpu][:total]}"
+    options "--deployment --jobs #{[4, node.dig('cpu', 'total').to_i, node.dig('cpu', 'cores').to_i].max}"
     user "root"
     group "root"
     notifies :run, "bundle_exec[/srv/#{year}.stateofthemap.org]"
     user "root"
     group "root"
     notifies :run, "bundle_exec[/srv/#{year}.stateofthemap.org]"