Skip to content

Commit

Permalink
Remove support for Ubuntu 20.04 Focal
Browse files Browse the repository at this point in the history
  • Loading branch information
rrotter committed Dec 3, 2024
1 parent b370ca6 commit dd2b495
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
11 changes: 3 additions & 8 deletions manifests/profile/apt/mono.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,11 @@
# @example
# include nebula::profile::apt::mono
class nebula::profile::apt::mono {
# default to buster if we're not on a supported release
# default to buster since no newer release is available
# check here to see if list of supported releases updated:
# https://download.mono-project.com/repo/debian/index.html
if $::lsbdistcodename in ['xenial', 'bionic', 'focal', 'jessie', 'stretch', 'buster'] {
$apt_release = $::lsbdistcodename
} else {
warning("nebula::profile::apt::mono: defaulting to apt repo dist 'buster'")
# using buster because it's newer than focal
$apt_release = 'buster'
}
warning("nebula::profile::apt::mono: defaulting to apt repo dist 'buster'")
$apt_release = 'buster'

apt::source { 'mono-official-stable':
location => 'https://download.mono-project.com/repo/debian',
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": ["20.04","22.04"]
"operatingsystemrelease": ["22.04"]
}
],
"requirements": [
Expand Down
7 changes: 1 addition & 6 deletions spec/classes/profile/apt/mono_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@
it do
expect(subject).to contain_apt__source('mono-official-stable').with(
location: 'https://download.mono-project.com/repo/debian',
release: case os
when 'ubuntu-20.04-x86_64', 'debian-10-x86_64'
"stable-#{facts[:lsbdistcodename]}"
else
'stable-buster'
end,
release: 'stable-buster',
repos: 'main',
)
end
Expand Down

0 comments on commit dd2b495

Please sign in to comment.