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

Wrong path for hiera-http #44

Open
getchudez opened this issue Sep 29, 2016 · 0 comments
Open

Wrong path for hiera-http #44

getchudez opened this issue Sep 29, 2016 · 0 comments

Comments

@getchudez
Copy link

Hi, I've been testing this module on my installation PE-2016-2.1 , if I'm using hiera command to make a request that is working fine but when I'm trying to use from manifests it show me an error.

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, Cannot load backend http: no such file to load -- hiera/backend/http_backend at /etc/puppetlabs/code/environments/production/manifests/site.pp:34:3 on node XXXXXX
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Here is my basic site.pp

node default {
hiera_include('classes')
}

After some resesarch, I realized that the path where the library were installed is not correct for this puppet version. So I've to moved the files from /opt/puppetlabs/puppet/lib/ruby/gems/2.1.0/gems/hiera-http-2.0.0/lib/hiera/backend to /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/hiera/backend and do the same thing for /opt/puppetlabs/puppet/lib/ruby/gems/2.1.0/gems/lookup_http-1.0.0/lib/lookup_http.rb to /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/

After that I tested my agent and worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants