jamtur01 / jamtur01-httpauth

Puppet type and provider for managing HTTP Basic and Digest Authentication
15 stars 12 forks source link

Could not autoload puppet/provider/httpauth/httpauth: cannot load such file -- webrick #13

Open jerome2710 opened 2 months ago

jerome2710 commented 2 months ago
Command: /opt/puppetlabs/bin/puppet generate types --environment production --environmentpath /etc/puppetlabs/code/environments --config /etc/puppetlabs/puppet/puppet.conf
Stdout:
Notice: Generating Puppet resource types.
Stderr:
Error: Could not autoload puppet/provider/httpauth/httpauth: cannot load such file -- webrick
Error: Failed to load custom type 'httpauth' from '/etc/puppetlabs/code/environments/production/modules/httpauth/lib/puppet/type/httpauth.rb': Could not autoload puppet/provider/httpauth/httpauth: cannot load such file -- webrick
Exit code: 1
ERROR: Job failed: exit code 1

I see the readme states Requirements: webrick. What is it and how do I configure it? There are no references.

jamtur01 commented 2 months ago
gem install webrick

However, I have no idea if the module still works. It's been some years.

jerome2710 commented 2 months ago

@jamtur01 Thanks for replying. I ran both gem install webrick and puppetserver gem install webrick on my Puppetserver but still get the same error.

jamtur01 commented 2 months ago

There's a good chance it might not work in modern Puppet - I think all of this was written with Ruby 2.x.