-
Notifications
You must be signed in to change notification settings - Fork 63
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
Can't make v3 to work, undefined method `exist?' for :URI::HTTP #52
Comments
Installed absolutely fresh puppet pe 2017.2.1, without anything else installed. Only hiera_http in production env - worked Confused |
Updating to 2017.1.0 -> 2017.2.1 helped. These install steps were sufficient:
Also good to have notice in instructions that puppet reload won't work, only complete restart of service. |
Had the same problem. We were using the version 9.4.2 of Puppet. We found out that the problem was in this file: More precisely in this method: def lookup_key(key, lookup_invocation, location, merge)
unless location.nil? || location.exist? # This line is the origin of the exception
lookup_invocation.report_location_not_found
throw :no_such_key
end
ctx = function_context(lookup_invocation, location)
ctx.data_hash ||= {
...
end The direct cause is that the object URI used in hiera hierarchy does not have an exist? method, causing the undefined method exception. It's a bug that is fixed in the version 4.10.x of Puppet. Best regards |
@thedronekiller @den-is hiera-http 3.0 (the data provider function) is only meant for use in Puppet 4.10 - as stated in the README, so if this doesn't affect 4.10+ then theres no further action needed here |
Actually, the docs say 4.9+ - if this issue affects 4.9 then we should change the documentation - so re-opening this ticket as a reminder |
Trying to add
hiera_http
to my PE for couple days already.But no luck :/
Already can't see where to look for the issue.
hiera-http v3
puppet pe 2017.1
lookup_http 1.0.3
Only error I'm getting is:
debug output shows nothing special
can't see anything useful in server logs as well :/
installed lookup_http like everywhere
And yes, first trying to run setup on my test node in development environment.. but have installed hiera_http module in production as well.
here is hiera config
tried
uri
instead ofuris
tried to disable hiera 'defaults' and couple other classic yaml hierarchies leaving only hiera_http...
Nothing changes this error
The text was updated successfully, but these errors were encountered: