Last active
August 13, 2018 08:37
-
-
Save fvoges/2806fa183f63b65ef6841a9d14b874f2 to your computer and use it in GitHub Desktop.
Hiera v5 example config
This file contains hidden or 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
| --- | |
| version: 5 | |
| defaults: | |
| datadir: data | |
| lookup_key: eyaml_lookup_key | |
| options: | |
| pkcs7_private_key: /etc/puppetlabs/secure/keys/private_key.pkcs7.pem | |
| pkcs7_public_key: /etc/puppetlabs/secure/keys/public_key.pkcs7.pem | |
| hierarchy: | |
| - name: "Classifier Configuration Data" | |
| data_hash: classifier_data | |
| - name: "Node specific data" | |
| path: "nodes/%{trusted.certname}.yaml" | |
| - name: "Application specific data" | |
| paths: | |
| - "applications/%{facts.application}-%{facts.role}-%{facts.app_tier}.yaml" | |
| - "applications/%{facts.application}-%{facts.role}.yaml" | |
| - "applications/%{facts.application}.yaml" | |
| - name: "Location specific data" | |
| paths: | |
| - "Location/%{facts.datacenter}.yaml" | |
| - name: "Common data" | |
| path: "common.yaml" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment