Created
November 23, 2015 17:46
-
-
Save perfecto25/1819a1308a69de057ade to your computer and use it in GitHub Desktop.
Hiera troubleshoot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hiera domain_name ::osname=Debian | |
result: common.corp.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/puppetlabs/puppet/hieradata/ | |
--- | |
domain_name: common.corp.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/puppetlabs/puppet/hieradata/ | |
--- | |
domain_name: debian.corp.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
:backends: | |
- yaml | |
:hierarchy: | |
- "node/%{clientcert}" | |
- "%{::osfamily}" | |
#- common | |
:yaml: | |
# datadir is empty here, so hiera uses its defaults: | |
# - /etc/puppetlabs/code/environments/%{environment}/hieradata on *nix | |
# - %CommonAppData%\PuppetLabs\code\environments\%{environment}\hieradata on Windows | |
# When specifying a datadir, make sure the directory exists. | |
:datadir: /etc/puppetlabs/puppet/hieradata |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment