I've been writing a new Hiera backend 
(here<https://github.com/Nextdoor/puppet_rightscale/blob/master/lib/hiera/backend/rstag_backend.rb>)
 
and its working fine in all of my local and unit tests. I can run Puppet 
Apply with an appropriate LOAD_PATH and it works just fine. However, when 
we actually merged it in to run on our test puppet master, we ran into load 
problems:

Strace from Puppet Master trying to load rstag_backend: 
here<http://pastebin.com/9wPDTVLj>
Hiera Config: here <http://pastebin.com/DaNywMX6>

Based on my read of the docs:

When using Hiera with Puppet, you can load backends from the lib directory 
> of a Puppet module; however, these backends won’t be loaded when you run 
> Hiera from the command line unless you specify that directory in your 
> RUBYLIB environment variable.


We should be able to simply import our puppet module and use the backend... 
but that doesn't seem to be the case. It does seem like I might be able to 
simply add a symlink in the root of my Puppet code path from 
*./hiera/backends/rstag_backend.rb* -> 
*./modules/rightscale/lib/hiera/backends/rstag_backend.rb*, but that 
doesn't seem like it should be necessary.

Any thoughts?

We're running Puppet 3.4.1 by the way.. 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/adf3786c-9502-42ed-bea0-a7f33c8e3414%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to