X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2dda97888557e215bae8daeae951c4873f1859d6..21f63bf93d90219a836166bbf0883755e4248989:/cookbooks/stateofthemap/recipes/jekyll.rb?ds=inline 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]"