Skip to content

Instantly share code, notes, and snippets.

@ericbisme
Last active August 7, 2017 18:32
Show Gist options
  • Save ericbisme/e58b986e5d49dc55a0b1e3fff4850307 to your computer and use it in GitHub Desktop.
Save ericbisme/e58b986e5d49dc55a0b1e3fff4850307 to your computer and use it in GitHub Desktop.
hiera.yaml
# managed by puppet
---
:backends:
- eyaml
- yaml
:logger: console
:hierarchy:
- "nodes/%{::clientcert}"
- "%{::team}/%{::app}/%{::pp_role}"
- "%{::team}/%{::app}/%{::app_productline}%{::app_chain}"
- "%{::team}/%{::app}/%{::app_chain}.chain"
- "%{::team}/%{::app}/%{::app_productline}"
- "%{::team}/%{::app}/%{::region}"
- "%{::team}/%{::app}/defaults"
- "%{::team}/%{::region}"
- "%{::team}/defaults"
- "region/%{::region}"
- defaults
:yaml:
:datadir: /etc/puppet/environments/%{::environment}/hieradata
:eyaml:
:datadir: /etc/puppet/environments/%{::environment}/hieradata
:extension: yaml
:pkcs7_private_key: /etc/puppet/keys/private_key.pkcs7.pem
:pkcs7_public_key: /etc/puppet/keys/public_key.pkcs7.pem
:merge_behavior: deeper
@ericbisme
Copy link
Author

hiera.yaml as of 20170314. Currently we have the proto-structure to separate applications, but the meat of it is not in place. All apps will see all variables as-is. Having real separation between apps is on our list.

@ericbisme
Copy link
Author

Updated to latest since psadmin.io linked me :-). Thanks guys!

@iversond
Copy link

iversond commented Aug 7, 2017

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment