Skip to content

Add information about reinstall puppet-agent-oauth#619

Open
TuningYourCode wants to merge 1 commit intovoxpupuli:masterfrom
TuningYourCode:master
Open

Add information about reinstall puppet-agent-oauth#619
TuningYourCode wants to merge 1 commit intovoxpupuli:masterfrom
TuningYourCode:master

Conversation

@TuningYourCode
Copy link
Contributor

As i had this problem and got the answer in slack i wanted to contribute the solution to the website.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In foreman-installer there's a hook that automates it:
https://github.com/theforeman/foreman-installer/blob/develop/hooks/pre/31-puppet_agent_oauth.rb
But those who use their installation directly without foreman-installer need to make sure the oauth gem is available. Either by installing puppet-agent-oauth, a manual gem install oauth in the right Ruby environment or some other way.

@TuningYourCode
Copy link
Contributor Author

we use the foreman puppet modules to manage the foreman installation by puppet (kind of chicken & egg issue ;)) not sure how common that setup is.
If our setup is niche we can also close the PR or change the wording :) I think the case is not that important that we should do a discussion - the time is better spent on other topics.

@ekohl
Copy link
Member

ekohl commented Feb 11, 2026

It's not that uncommon and I wanted to provide some context there are multiple ways of achieving it. In https://github.com/theforeman/puppet-foreman/blob/master/manifests/providers.pp we only support the package method, but in I think you can also use

package { 'oauth':
  ensure   => installed,
  provider => 'puppet_gem',
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants