From: Tom Hughes Date: Fri, 17 Nov 2023 19:02:46 +0000 (+0000) Subject: Use debian 11 chef client on debian 12 X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/1826b708e577f304ea068812d26f4a415b3691ec Use debian 11 chef client on debian 12 --- diff --git a/cookbooks/chef/recipes/default.rb b/cookbooks/chef/recipes/default.rb index d06162465..91a91001c 100644 --- a/cookbooks/chef/recipes/default.rb +++ b/cookbooks/chef/recipes/default.rb @@ -49,7 +49,11 @@ Dir.glob("#{cache_dir}/chef_*.deb").each do |deb| end end -os_release = node[:lsb][:release] +os_release = if platform?("debian") && node[:lsb][:release].to_f > 11 + 11 + else + node[:lsb][:release] + end remote_file "#{cache_dir}/#{chef_package}" do source "https://packages.chef.io/files/stable/chef/#{chef_version}/#{chef_platform}/#{os_release}/#{chef_package}"