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 6133f87
Show file tree
Hide file tree
Showing 2 changed files with 6 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
11 changes: 4 additions & 7 deletions spec/acceptance/puppetserver_upgrade_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require 'spec_helper_acceptance'

unless unsupported_puppetserver
unless unsupported_puppetserver ||
(fact('os.family') == 'RedHat' && fact('os.release.major') == '9') ||
(fact('os.name') == 'Ubuntu' && fact('os.release.major') == '22.04')
describe 'Scenario: minor version upgrade' do
before(:all) do
if check_for_package(default, 'puppetserver')
Expand All @@ -16,12 +18,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

0 comments on commit 6133f87

Please sign in to comment.