Skip to content

Instantly share code, notes, and snippets.

@akesterson
Created December 18, 2013 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akesterson/8027446 to your computer and use it in GitHub Desktop.
Save akesterson/8027446 to your computer and use it in GitHub Desktop.
/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