I just realized, while doing some other hiera work with a custom HTTP 
backend, that this won't work.  It's the same problem I have with the way 
scoping works for the HTTP backend.  If I don't specify the lookup() key in 
the manifest with a scope, then puppet ONLY uses GLOBAL and ENVIRONMENT 
scope and ignores module scope.  This seems undesired.  In that manner, I 
would have to have my filenames (in the case of file backend) or URIs (as 
is the case with HTTP backend) contain module scoping in the lookup, so my 
filename would become lookup('somemodule::somefile.txt") which would THEN 
have to actually exist in that lookup...

I would expect Puppet to use module scope when a lookup is performed within 
the module if scope is not specified for this lookup.
https://groups.google.com/forum/#!topic/puppet-users/9q__saaa26w



On Monday, August 21, 2017 at 3:03:15 PM UTC-5, John Baird wrote:
>
> There was an old hiera 3.X hiera-file backend now owned on github by 
> voxpupuli... does anyone have a working example of how to reproduce this in 
> Puppet 5 with the next data_hash contexts?  Puppet's documentation seems 
> woefully lacking in this area.
>
> Basically, I would like to be able to serve up `/etc/hosts` file from 
> hiera backend, for example.
>

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/e2ee7ef3-1bc3-46b5-ba1d-2482347d502d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to