Skip to content

Commit

Permalink
docker_installation_package: support for ubuntu 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
san983 committed Jun 11, 2024
1 parent 63fe9d9 commit f4c2bc5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions resources/installation_package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ 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?
Expand All @@ -82,6 +87,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
Expand Down

0 comments on commit f4c2bc5

Please sign in to comment.