From 8ee66ff321bcb30ec29c5bd26582c5a2cb9f61ab Mon Sep 17 00:00:00 2001 From: Santiago Traversa Date: Tue, 11 Jun 2024 01:30:19 -0300 Subject: [PATCH] docker_installation_package: support for ubuntu 24.04 --- resources/installation_package.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resources/installation_package.rb b/resources/installation_package.rb index 9cc8b2f65..ff66ef261 100644 --- a/resources/installation_package.rb +++ b/resources/installation_package.rb @@ -67,6 +67,12 @@ def jammy? false end +def nobel? + return true if platform?('ubuntu') && node['platform_version'] == '24.04' + false +end + + # https://github.com/chef/chef/issues/4103 def version_string(v) return if v.nil? @@ -82,6 +88,8 @@ def version_string(v) 'focal' elsif jammy? # ubuntu 22.04 'jammy' + elsif nobel? # ubuntu 24.04 + 'nobel' end # https://github.com/seemethere/docker-ce-packaging/blob/9ba8e36e8588ea75209d813558c8065844c953a0/deb/gen-deb-ver#L16-L20