-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Using hiera to manage hiera #17
Comments
I actually have never been brave enough to declare puppet-hiera using hiera values. The actual template for hiera.yaml doesn't contain any quotes though, so I'm not sure where either your |
Hi The gist is what I placed in the hiera data file.
|
We use Hiera's # In /etc/puppet/hieradata/production/fqdn/puppet01.example.com.yaml
puppet::master::hiera::hierarchy:
- "fqdn/%%{}{::clientcert}"
- "stages/%%{}{::stage}"
- "domains/%%{}{::domain}"
- "os/%%{}{::operatingsystem}/%%{}{::lsbdistcodename}"
- "os/%%{}{::operatingsystem}"
- "virtual/%%{}{::virtual}"
- #... The Note that we don't use @hunner's module directly but I have implemented more or less exactly the same thing in our own puppet-puppet module. |
@antaflos ah cool. thanks for the info. Will try the literal('%') function. |
pretty sure we can close this one now ;) |
Hi,
I got the following in a hiera file:
https://gist.github.com/electrical/731539930ef79f48b93a
The issue is now that the values get evaluated and the result of those get passed in the hiera.yaml file instead as is.
Is there a way to avoid that?
Cheers.
The text was updated successfully, but these errors were encountered: