]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/stateofthemap/recipes/jekyll.rb
Add a library routine to get the CPU core count
[chef.git] / cookbooks / stateofthemap / recipes / jekyll.rb
index fa2545e5fedbb466c6f3bdaed9186c81e9447320..a57d230b6771b7ba7493d5fd01f9ca156d40163a 100644 (file)
@@ -58,7 +58,7 @@ apache_module "rewrite"
 
   bundle_install "/srv/#{year}.stateofthemap.org" do
     action :nothing
-    options "--deployment --jobs #{[4, node.dig('cpu', 'total').to_i, node.dig('cpu', 'cores').to_i].max}"
+    options "--deployment --jobs #{node.cpu_cores}"
     user "root"
     group "root"
     notifies :run, "bundle_exec[/srv/#{year}.stateofthemap.org]"