Skip to content

Commit

Permalink
(profile::core::puppet_master) install oauth gem in puppet agent env
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jhoblitt committed Aug 22, 2022
1 parent 5b0559d commit 25a4776
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions site/profile/manifests/core/puppet_master.pp
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,9 @@

# for bmc management
ensure_packages(['ipmitool'])

package { 'oauth':
ensure => installed,
provider => 'puppet_gem',
}
}
2 changes: 2 additions & 0 deletions spec/hosts/roles/foreman_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@
],
)
end

it { is_expected.to contain_package('oauth').with_provider('puppet_gem') }
end

role = 'foreman'
Expand Down

0 comments on commit 25a4776

Please sign in to comment.