From: Tom Hughes Date: Wed, 9 Nov 2022 13:41:27 +0000 (+0000) Subject: There are Ubuntu 22.04 builds for chef now X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/b44220a58b9779d37c0599a7f03ae3f9fd77f77b?hp=2b8fcbaea032fe9a2e5c98a8c63311756809c493 There are Ubuntu 22.04 builds for chef now --- diff --git a/cookbooks/chef/recipes/default.rb b/cookbooks/chef/recipes/default.rb index 47323bd87..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}"