you need to adjust the hiera hierarchy. To adjust it you need a top scope variable (e.g. "pod_prefix") (https://docs.puppetlabs.com/puppet/latest/reference/lang_scope.html#top-scope ) to be used in hiera.yaml configuration file.
you could also make a custom fact (https://docs.puppetlabs.com/facter/2.4/custom_facts.html) in a module or a facter-dot-d fact (https://puppetlabs.com/blog/module-of-the-week-puppetlabsstdlib-puppetlabs-standard-library-part-3) you could also use an hiera based ENC like https://github.com/Zetten/puppet-hiera-enc to define the value in hiera. - Thomas Am Dienstag, 21. Juli 2015 07:48:43 UTC+2 schrieb red: > > Hi, > > I use to keep all my class parameters in the default hiera data file, > /var/lib/hiera/defaults.yaml, but now I need to maintain another set of > nodes that would need to use different values for the class parameters in > the defaults.yaml. > > I figured, no bug deal, just add the FACTER_something_or_other environment > variable to all my nodes and set the value to particular node_set. Use > this env. var in my :hierarchy: section of my hiera.yaml. But it appears > it is not really that easy. > > I posted a detailed question on ask puppet but haven't gotten any > responses yet. > Could someone please take a look at my question? I am stumped. > > > https://ask.puppetlabs.com/question/18360/how-come-data-is-not-coming-from-hiera-yaml-file/ > > <https://www.google.com/url?q=https%3A%2F%2Fask.puppetlabs.com%2Fquestion%2F18360%2Fhow-come-data-is-not-coming-from-hiera-yaml-file%2F&sa=D&sntz=1&usg=AFQjCNHf7jLpK79lC76jraIdCVZrTXRmRQ> > > If you prefer, I also posted on stackover flow here > > > http://stackoverflow.com/questions/31522249/how-come-data-is-not-coming-from-my-hiera-yaml-file > > Thanks :) > > > -- 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/402bde62-1703-4e31-9f9b-35a0edbe34a0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.