]> git.openstreetmap.org Git - chef.git/commitdiff
There are Ubuntu 22.04 builds for chef now
authorTom Hughes <tom@compton.nu>
Wed, 9 Nov 2022 13:41:27 +0000 (13:41 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 9 Nov 2022 13:41:27 +0000 (13:41 +0000)
cookbooks/chef/recipes/default.rb

index 47323bd874d74a6315b9bbbcf4a454d0a2642c51..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}"