From 24586dd81b77869bfb375b1fe55d9c2213eb5670 Mon Sep 17 00:00:00 2001 From: Joshua Hoblitt Date: Mon, 22 Aug 2022 15:08:20 -0700 Subject: [PATCH] (profile::core::puppet_master) install oauth gem in puppet agent env puppet6 aio bundles the oauth gem but it is not bundled with puppet7 aio. Most of the native types in `theforeman/foreman` require this gem to be present. See: https://github.com/theforeman/puppet-foreman/pull/1077 --- site/profile/manifests/core/puppet_master.pp | 5 +++++ spec/hosts/roles/foreman_spec.rb | 2 ++ 2 files changed, 7 insertions(+) diff --git a/site/profile/manifests/core/puppet_master.pp b/site/profile/manifests/core/puppet_master.pp index 498274492b..98f66fa230 100644 --- a/site/profile/manifests/core/puppet_master.pp +++ b/site/profile/manifests/core/puppet_master.pp @@ -194,4 +194,9 @@ # for bmc management ensure_packages(['ipmitool']) + + package { 'oauth': + ensure => installed, + provider => 'puppet_gem', + } } diff --git a/spec/hosts/roles/foreman_spec.rb b/spec/hosts/roles/foreman_spec.rb index 579d1e715d..c4e4921045 100644 --- a/spec/hosts/roles/foreman_spec.rb +++ b/spec/hosts/roles/foreman_spec.rb @@ -165,6 +165,8 @@ ], ) end + + it { is_expected.to contain_package('oauth').with_provider('puppet_gem') } end role = 'foreman'