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

Problem with "data_provider" = "function" in the metadata.json? #46

Open
flaf opened this issue Apr 10, 2016 · 2 comments
Open

Problem with "data_provider" = "function" in the metadata.json? #46

flaf opened this issue Apr 10, 2016 · 2 comments

Comments

@flaf
Copy link

flaf commented Apr 10, 2016

Hi,

a) I'm using puppet-forge-server version 1.9.0 (commit ab01f33) and during a puppet module upgrade mymodule, I have error messages in the syslog (see here).

Is there a problem with puppet-forge-server and the "function" data provider in metadata.json?

b) I don't know if it was related, but I was unable to upgrade my module. A false problem of dependencies was mentioned. But dependencies were fine. I have forced the upgrade of my module and of one dependency which must be upgraded too and after that all was installed correctly without any problem of dependency (puppet module list didn't mention any problem of dependency).

Impossible to reproduce the problem b) however...

@i11
Copy link
Contributor

i11 commented Apr 11, 2016

Hi,

It would be helpful to look at your metadata.json and a way to reproduce the upgrade issue.
The error message regarding data_provider is harmless. It occurs here: https://github.com/unibet/puppet-forge-server/blob/master/lib/puppet_forge_server/models/builder.rb#L26.It's either a new supported or a custom metadata field. https://github.com/unibet/puppet-forge-server/blob/master/lib/puppet_forge_server/models/metadata.rb could be updated to include it.

@flaf
Copy link
Author

flaf commented Apr 11, 2016

Sorry, indeed I should give an example of metadata.json. Here is an example that triggers the error here. I think data_provider is a new entry since Puppet 4. It's documented here. Its value can be null, "none", "hiera" or "function".

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