X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2bfb0ef07fb64314f5c4ded641a8c280df9c1d0b..21f63bf93d90219a836166bbf0883755e4248989:/cookbooks/chef/recipes/default.rb diff --git a/cookbooks/chef/recipes/default.rb b/cookbooks/chef/recipes/default.rb index bd22671a7..9f377f502 100644 --- a/cookbooks/chef/recipes/default.rb +++ b/cookbooks/chef/recipes/default.rb @@ -36,11 +36,7 @@ Dir.glob("#{cache_dir}/chef_*.deb").each do |deb| end end -ubuntu_release = if node[:lsb][:release].to_f < 22.04 - node[:lsb][:release] - else - "20.04" - end +ubuntu_release = node[:lsb][:release] remote_file "#{cache_dir}/#{chef_package}" do source "https://packages.chef.io/files/stable/chef/#{chef_version}/ubuntu/#{ubuntu_release}/#{chef_package}" @@ -117,6 +113,7 @@ end systemd_service "chef-client" do description "Chef client" exec_start "/usr/bin/chef-client" + nice 10 end systemd_timer "chef-client" do