Skip to content

Instantly share code, notes, and snippets.

@soumentrivedi
Created May 27, 2015 06:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soumentrivedi/24bb3fb135085d004c1d to your computer and use it in GitHub Desktop.
Save soumentrivedi/24bb3fb135085d004c1d to your computer and use it in GitHub Desktop.
Hiera Eyaml - Separate encryption keys for every puppet environment
---
:backends:
- eyaml
- yaml
:hierarchy:
- "nodes/%{::clientcert}"
- common
:yaml:
:datadir: /git_source/puppet/environments/%{::environment}/hieradata
:eyaml:
:datadir: '/git_source/puppet/environments/%{::environment}/hieradata'
:pkcs7_private_key: '/etc/puppet/secure/%{::environment}/private_key.pkcs7.pem'
:pkcs7_public_key: '/etc/puppet/secure/%{::environment}/public_key.pkcs7.pem'
:merge_behavior: deeper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment