diff --git a/manifests/install.pp b/manifests/install.pp index 1fcc0ae36..f827f309c 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -47,4 +47,9 @@ if $foreman::register_in_foreman { contain foreman::providers } + + package { 'oauth': + ensure => installed, + provider => 'puppet_gem', + } } diff --git a/spec/classes/foreman_install_spec.rb b/spec/classes/foreman_install_spec.rb index 18ee5a29f..9b7602113 100644 --- a/spec/classes/foreman_install_spec.rb +++ b/spec/classes/foreman_install_spec.rb @@ -6,6 +6,8 @@ let(:facts) { facts } let(:params) { {} } + it { is_expected.to contain_package('oauth').with_provider('puppet_gem') } + describe 'with version' do let(:params) { super().merge(version: 'latest') } it { should_not contain_foreman__repos('foreman') }