Created
December 18, 2013 18:37
-
-
Save akesterson/8027446 to your computer and use it in GitHub Desktop.
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/hiera.yaml config: | |
--- | |
:backends: | |
- yaml | |
:hierarchy: | |
- %{fqdn} | |
- defaults | |
:yaml: | |
:datadir: /etc/puppet/hieradata | |
Contents of /etc/puppet/hieradata/defaults.yaml: | |
--- | |
application_version: 2.2 | |
Contents of /etc/puppet/hieradata/SOME.OTHER.FQDN.COM.yaml: | |
--- | |
application:version: 2.3 | |
... then in your puppet manifests: | |
$app_version = hiera('application_version') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment