Skip to content

Commit

Permalink
(PDB-5636) add ubuntu 2204 as supported platform
Browse files Browse the repository at this point in the history
This adds ubuntu 2204/jammy to the set of supported puppetdb versions
starting now.
  • Loading branch information
jonathannewman committed Jun 26, 2023
1 parent 9d987d3 commit 327cbf4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion acceptance/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ def is_focal()
return test_config[:os_families].has_key? 'ubuntu2004-64-1'
end

def is_jammy()
return test_config[:os_families].has_key? 'ubuntu2204-64-1'
end

def is_buster()
return test_config[:os_families].has_key? 'debian10-64-1'
end
Expand Down Expand Up @@ -339,7 +343,7 @@ def puppet_repo_version(platform_version, install_type, nightly)
# supported version of PuppetDB. Its version must be available in the
# platform version returned by puppet_repo_version above
def oldest_supported
# account for bionic/rhel8 not having build before certian versions
# account for bionic/rhel8 not having build before certain versions
if is_bullseye
'7.9.0'
elsif is_el8
Expand All @@ -350,6 +354,8 @@ def oldest_supported
'6.7.0'
elsif is_focal
'6.12.0'
elsif is_jammy
'7.13.2'
else
'6.0.0'
end
Expand Down Expand Up @@ -415,6 +421,8 @@ def get_package_version(host, version = nil)
"#{version}bionic"
elsif host['platform'].include?('ubuntu-20.04')
"#{version}focal"
elsif host['platform'].include?('ubuntu-22.04')
"#{version}jammy"
elsif host['platform'].include?('debian-10')
"#{version}buster"
elsif host['platform'].include?('debian-11')
Expand Down

0 comments on commit 327cbf4

Please sign in to comment.