]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/chef/recipes/default.rb
Drop passenger cleanup script that is no longer needed
[chef.git] / cookbooks / chef / recipes / default.rb
index bd22671a73ced1934610183924c600f1cde64175..9f377f502de0f22ce3f63c8874a92cf7efd340e7 100644 (file)
@@ -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