diff --git a/manifests/providers/params.pp b/manifests/providers/params.pp index 702d37fe8..1e43f5517 100644 --- a/manifests/providers/params.pp +++ b/manifests/providers/params.pp @@ -7,17 +7,17 @@ # OS specific package names case $facts['os']['family'] { 'RedHat': { - if $is_aio { - $oauth_package = 'puppet-agent-oauth' + $oauth_package = if $is_aio { + 'puppet-agent-oauth' } else { - $oauth_package = 'rubygem-oauth' + 'rubygem-oauth' } } 'Debian': { - if $is_aio { - $oauth_package = 'puppet-agent-oauth' + $oauth_package = if $is_aio { + 'puppet-agent-oauth' } else { - $oauth_package = 'ruby-oauth' + 'ruby-oauth' } } 'FreeBSD': { diff --git a/metadata.json b/metadata.json index 597fd5a1b..27288cfed 100644 --- a/metadata.json +++ b/metadata.json @@ -67,7 +67,6 @@ { "operatingsystem": "Debian", "operatingsystemrelease": [ - "11", "12" ] }, diff --git a/spec/defines/foreman_repos_apt_spec.rb b/spec/defines/foreman_repos_apt_spec.rb index 6c654a4ab..7cda826b5 100644 --- a/spec/defines/foreman_repos_apt_spec.rb +++ b/spec/defines/foreman_repos_apt_spec.rb @@ -4,7 +4,7 @@ let(:title) { 'foreman' } let :facts do - on_supported_os['debian-11-x86_64'] + on_supported_os['debian-12-x86_64'] end let(:apt_key) do