I've been writing a new Hiera backend (
here) 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
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..