crayfishx/hiera-http

Wrong path for hiera-http

getchudez opened this issue · 0 comments

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.