Last active
September 29, 2017 16:02
-
-
Save frozenfoxx/e51697ee63694168b793a7056ca0a6f0 to your computer and use it in GitHub Desktop.
Hiera v3 to v5
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
--- | |
:backends: | |
- yaml | |
:hierarchy: | |
- "%{::environment}/nodes/%{::trusted.certname}" | |
- "%{::environment}/puppetlabs" | |
- "%{::environment}/management" | |
- "%{::environment}/hosts" | |
- "%{::environment}/common" | |
:yaml: | |
:datadir: /etc/puppetlabs/puppet/data |
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/%{::environment}/" | |
data_hash: yaml_data | |
hierarchy: | |
- name: "Common YAMLs" | |
paths: | |
- "nodes/%{trusted.certname}.yaml" | |
- "puppetlabs.yaml" | |
- "management.yaml" | |
- "hosts.yaml" | |
- "common.yaml" |
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/%{::environment}/" | |
data_hash: yaml_data | |
hierarchy: | |
- name: "Per-node data (yaml version)" | |
path: "nodes/%{trusted.certname}.yaml" | |
- name: "Puppetlabs Variables" | |
path: "puppetlabs.yaml" | |
- name: "Management host variables" | |
path: "management.yaml" | |
- name: "Hosts" | |
path: "hosts.yaml" | |
- name: "Common variables" | |
path: "common.yaml" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment