I am using hiera lookup as follows in my puppet template

<%- nodeinfo = scope.function_hiera(['nodes']) -%>

I have provided the .yaml file which includes above 'nodes' object in my 
hiera.yaml file ( that is inside nodesfile.yaml file which is dynamically 
loaded as follows)

---
:backends:
  - yaml
:yaml:
  :datadir: /etc/puppet/hieradata
:hierarchy:
  - "%{::nodes_file}
  

I have want to load another data object into my puppet template but the 
problem is that data object is in a .yaml file which is not registered in 
my hiera.yaml file. I cannot register that file in my hiera.yaml. 

Is there anyway to load data object providing the file along with the 
lookup method. I do know the .yaml file name that object is in ?

-- 
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/7ef14a02-bf2a-465c-9410-2429e59b6f3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to