Skip to content

Commit c01ae69

Browse files
committed
(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: theforeman/puppet-foreman#1077
1 parent 321d00a commit c01ae69

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

site/profile/manifests/core/puppet_master.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,9 @@
194194

195195
# for bmc management
196196
ensure_packages(['ipmitool'])
197+
198+
package { 'oauth':
199+
ensure => installed,
200+
provider => 'puppet_gem',
201+
}
197202
}

spec/hosts/roles/foreman_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@
165165
],
166166
)
167167
end
168+
169+
it { is_expected.to contain_package('oauth').with_provider('puppet_gem') }
168170
end
169171

170172
role = 'foreman'

0 commit comments

Comments
 (0)