theforeman / puppet-foreman_proxy

Puppet module for Foreman Smart Proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Error: Could not find a suitable provider for foreman_smartproxy"

threepistons opened this issue · comments

Given:

When I: run /opt/puppetlabs/puppet/bin/r10k deploy environment production --puppetfile ; puppet generate types --environment production ; puppet agent -t on puppet.redacteddomain.

I get:

Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for puppet.redacteddomain
Info: Applying configuration version '1568994223'
Info: Stage[main]: Unscheduling all events on Stage[main]
Error: Could not find a suitable provider for foreman_smartproxy
Notice: Applied catalog in 20.74 seconds

I expected: an error-free puppet run.

You do have the oauth gem installed?

I have a RPM called "tfm-rubygem-oauth-0.5.4-3" installed.

That's installed in the SCL but Puppet bundles its own Ruby. We do have a puppet-agent-oauth package which installs the gem there. Be aware that when you upgrade your Puppet's major version they may change it (like from Puppet 5 to Puppet 6) and you need to reinstall it.

Ok, the puppet-agent-auth package was installed and the latest version and from your repo, yet yum reinstall puppet-agent-oauth fixed the problem. Thank you!

Fixed my issue as well, ubuntu 18.04 foreman 2.0. I ran sudo apt install --reinstall puppet-agent-oauth and it solved the issue for me

For the installer we have https://github.com/theforeman/foreman-installer/blob/develop/hooks/pre_validations/31-puppet-agent-oauth.rb but right now it only knows about RPM. A patch to add Debian support would be welcome. That would fix it automatically (for the installer).