Skip to content

Commit

Permalink
Add Ubuntu 22.04 support
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Nov 6, 2023
1 parent b48699c commit 1b5caa9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"20.04"
"20.04",
"22.04"
]
},
{
Expand Down
9 changes: 2 additions & 7 deletions spec/acceptance/puppetserver_upgrade_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper_acceptance'

unless unsupported_puppetserver
unless unsupported_puppetserver || unsupported_puppetserver_upgrade
describe 'Scenario: minor version upgrade' do
before(:all) do
if check_for_package(default, 'puppetserver')
Expand All @@ -16,12 +16,7 @@

case ENV['BEAKER_PUPPET_COLLECTION']
when 'puppet7'
from_version =
if fact('os.family') == 'RedHat' && fact('os.release.major') == '9'
'7.13.0'
else
'7.6.0'
end
from_version = '7.6.0'
to_version = '7.13.0'
else
raise 'Unsupported Puppet collection'
Expand Down
5 changes: 5 additions & 0 deletions spec/support/acceptance/puppetserver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ def unsupported_puppetserver
host_inventory['facter']['os']['release']['major'] == '12'
end
end

def unsupported_puppetserver_upgrade
(fact('os.family') == 'RedHat' && fact('os.release.major') == '9') ||
(fact('os.name') == 'Ubuntu' && fact('os.release.major') == '22.04')
end

0 comments on commit 1b5caa9

Please sign in to comment.