edf-hpc / puppet-hpc

Generic Puppet Configuration for HPC Clusters
http://edf-hpc.github.io/puppet-hpc/
GNU General Public License v2.0
13 stars 4 forks source link

Add all facts to hiera scope when doing lookup() with Hiera ruby library #108

Open rezib opened 7 years ago

rezib commented 7 years ago

Actually, Hiera does not know anything about facts. The facts must be explicitly added to its scope in lookup() parameters. This is actually what Puppet does when calling hiera*() functions from the Puppet parser. Otherwise, interpolation of facts in hiera backends cannot work properly.