Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage fails on puppet 7 due to hardcoded path #4

Open
thegushi opened this issue Aug 14, 2022 · 2 comments
Open

Usage fails on puppet 7 due to hardcoded path #4

thegushi opened this issue Aug 14, 2022 · 2 comments

Comments

@thegushi
Copy link

I am attempting to use this module on freeBSD 14, where there is no pkg repo (you can build pkg from ports, which I've done, and my system is in an "installed" state, but I'd like this module to take over).

In puppet 7 with r10k and pluginsync, we get the following failures:

Error: Could not autoload puppet/provider/package/portsng: cannot load such file -- puppet/util/ptomulik/package/ports
Error: Facter: error while resolving custom facts in /var/puppet/lib/facter/package_provider.rb Could not autoload puppet/provider/package/portsng: cannot load such file -- puppet/util/ptomulik/package/ports
Error: Could not autoload puppet/provider/package/portsng: cannot load such file -- puppet/util/ptomulik/package/ports
Error: Failed to apply catalog: Parameter provider failed on Package[zsh]: Could not autoload puppet/provider/package/portsng: cannot load such file -- puppet/util/ptomulik/package/ports (file: /usr/local/etc/puppet/code/environments/ports/modules/nnn_pkg/manifests/zsh.pp, line: 9)

It looks like this is due to the hardcoded:

require 'puppet/util/ptomulik/package/ports'
require 'puppet/util/ptomulik/package/ports/options'

And these paths do not exist in /var/puppet (I'm not sure if something should create them).

@ptomulik
Copy link
Owner

Well, AFAIR, if the module is installed from puppetforge, additional modules should be installed as dependencies: ptomulik/portsutil and ptomulik/backports. The files, you mentioned, shall be provided by ptomulik/portsutil.

@ptomulik
Copy link
Owner

I haven't used puppet for several years. So it's really hard to recall things, and as I see, it evolved quite a lot.

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

No branches or pull requests

2 participants