Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rezib opened this issue Feb 14, 2017 · 0 comments
Open

Comments

@rezib
Copy link
Contributor

rezib commented Feb 14, 2017

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.

rezib added a commit that referenced this issue Feb 14, 2017
This is a temporary workaround for #108 in order to get the
::cluster_name fact available for interpolation in hiera. Otherwise, the
fact is not resolved and interpolation results in empty string.
rezib added a commit that referenced this issue Mar 27, 2018
This is a temporary workaround for #108 in order to get the
::cluster_name fact available for interpolation in hiera. Otherwise, the
fact is not resolved and interpolation results in empty string.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant