Details
-
Bug
-
Status: Closed
-
Resolution: Won't Do
-
Ubuntu 14.04, Puppet 3.4.3 (OpenSource), Hiera 1.3, YAML configuration
-
Minor
-
1 - 1-5% of Customers
-
1 - Superficial
-
1 - ?
Description
The documentation implies that node-scope variables can be used in Hiera configuration files (Found at https://docs.puppetlabs.com/hiera/1/variables.html). Under the section 'Passing Variables to Hiera -> From Puppet -> Best practices' it says:
"Usually avoid referencing user-set local variables from Hiera. Instead, use facts, built-in variables, top-scope variables, node-scope variables, or variables from an ENC whenever possible."
I have also created a StackOverflow question on this issue, just in case the documentation is correct, but doesn't describe the implementation of using node-scope variables. That can be found at - http://stackoverflow.com/questions/33679671/puppet-using-node-scope-variables-in-hiera-config.