On Thu, Sep 14, 2017 at 8:53 PM, John Baird <[email protected]> wrote:

> I am currently implementing the "hiera-http" custom backend written by
> crayfishx located: "https://github.com/crayfishx/hiera-http";.
>
> I have some custom classes that need to run through an iteration of hiera
> hashes and perform lookups on the values of said hashes.  As a result, I
> would simply like to be able to have lookup('somestring') work from within
> a module.  When doing this, lookup fails to use the module-specific
> hiera.yaml.  I don't want ALL of my modules to use hiera-http as that is
> clearly overkill and prone to latency and longer puppet runs.  The only
> workaround at the moment is to lookup("mymodule::somestring") which then
> properly uses the module hiera.yaml and looks up the value in the
> module-specific YAML.
>
>
Would using the 'confine_to_keys' option in Hiera-HTTP help you do this?

Admittedly thats still not very clean - but slightly closer to what I think
you are trying to do.

Regards
Craig

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" 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-users/CACxdKhHMAOvZ_zp5W0kcOqtk4qwRf1A89jsCEpknFvNvJGXtAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to