From 3de87b1fbae3000304260687d51b15b8978b4507 Mon Sep 17 00:00:00 2001 From: Joshua Hoblitt Date: Thu, 18 Aug 2022 15:04:28 -0700 Subject: [PATCH] install oauth gem on puppet agent puppet6 aio bundles the oauth gem but it is not bundled with puppet7 aio. Most of the native types in this module require this gem to be present. --- manifests/install.pp | 5 +++++ spec/classes/foreman_install_spec.rb | 2 ++ 2 files changed, 7 insertions(+) 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') }