From: Grant Slater Date: Fri, 2 Dec 2022 19:13:58 +0000 (+0000) Subject: stateofthemap: Fix Mac ARM compatibility (kitchen) X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/b40c940172b533edb3023198d4c8d7f47ddc061b?ds=inline stateofthemap: Fix Mac ARM compatibility (kitchen) --- diff --git a/cookbooks/stateofthemap/recipes/jekyll.rb b/cookbooks/stateofthemap/recipes/jekyll.rb index e286f2f7c..fa2545e5f 100644 --- a/cookbooks/stateofthemap/recipes/jekyll.rb +++ b/cookbooks/stateofthemap/recipes/jekyll.rb @@ -58,7 +58,7 @@ apache_module "rewrite" 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]"