We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, I'm stuck with my hiera-puppetdb setup. All lookup requests are constantly failing in the "searching for lookup-options" sequence:
Hierarchy entry "Puppetdb Backend" Searching for "lookup_options" Recursive lookup detected in [lookup_options]
hiera.yaml:
version: 5
defaults: datadir: "/etc/puppetlabs/code/hiera/%{environment}/data"
hierarchy: - name: "Puppetdb Backend" lookup_key: puppetdb_lookup_key
Versions: Puppet 5.5.2 puppetdbquery 3.0.1 puppet-db 1.2.4 postgresql 9.6
Debug output looks good to me, no hints for any problems. Any ideas / suggestions where to look at?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
I have the same problem but I couldn't really figure out under which conditions it happens.
But the reason WHY it happens seems to be that the lookup in https://github.com/dalen/puppet-puppetdbquery/blob/master/lib/puppet/functions/puppetdb_lookup_key.rb is happening even when "lookup_options" is requested. Which causes puppet to lookup lookup_options and probably trying to lookup lookup_options implicitly again and again and again.
So the reason is probably to do something like
if key == "lookup_options" context.not_found end
in the function just before the lookup.
Sorry, something went wrong.
Don't lookup lookup_options key
lookup_options
4802d2d
Prevent recursive queries for `lookup_options`; idea stolen from dalen#115.
No branches or pull requests
Hello, I'm stuck with my hiera-puppetdb setup. All lookup requests are constantly failing in the "searching for lookup-options" sequence:
hiera.yaml:
version: 5
defaults:
datadir: "/etc/puppetlabs/code/hiera/%{environment}/data"
hierarchy:
- name: "Puppetdb Backend"
lookup_key: puppetdb_lookup_key
Versions:
Puppet 5.5.2
puppetdbquery 3.0.1
puppet-db 1.2.4
postgresql 9.6
Debug output looks good to me, no hints for any problems.
Any ideas / suggestions where to look at?
Thanks in advance!
The text was updated successfully, but these errors were encountered: