diff --git a/manifests/profile/apt/mono.pp b/manifests/profile/apt/mono.pp index a464c56d7..71b370419 100644 --- a/manifests/profile/apt/mono.pp +++ b/manifests/profile/apt/mono.pp @@ -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', diff --git a/metadata.json b/metadata.json index 7a5727c53..4ebe960d1 100644 --- a/metadata.json +++ b/metadata.json @@ -40,7 +40,7 @@ }, { "operatingsystem": "Ubuntu", - "operatingsystemrelease": ["20.04","22.04"] + "operatingsystemrelease": ["22.04"] } ], "requirements": [ diff --git a/spec/classes/profile/apt/mono_spec.rb b/spec/classes/profile/apt/mono_spec.rb index 7e86f17bc..357cd9c53 100644 --- a/spec/classes/profile/apt/mono_spec.rb +++ b/spec/classes/profile/apt/mono_spec.rb @@ -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