X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/0fd66a3f0f75fd01d6d5a22570e9557158630e5a..21f63bf93d90219a836166bbf0883755e4248989:/cookbooks/stateofthemap/recipes/jekyll.rb diff --git a/cookbooks/stateofthemap/recipes/jekyll.rb b/cookbooks/stateofthemap/recipes/jekyll.rb index a9dd65c8d..fa2545e5f 100644 --- a/cookbooks/stateofthemap/recipes/jekyll.rb +++ b/cookbooks/stateofthemap/recipes/jekyll.rb @@ -17,6 +17,7 @@ # limitations under the License. # +include_recipe "stateofthemap" include_recipe "ruby" package %w[ @@ -57,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]"