Skip to content

Commit

Permalink
Merge pull request #68 from nod0n/hiera
Browse files Browse the repository at this point in the history
hiera.yaml
  • Loading branch information
ghoneycutt committed Feb 18, 2021
2 parents f31f1b1 + 7cd3938 commit 680bbc9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions hiera.yaml
@@ -0,0 +1,21 @@
---
version: 5

defaults: # Used for any hierarchy level that omits these keys.
datadir: data # This path is relative to hiera.yaml's directory.
data_hash: yaml_data # Use the built-in YAML backend.

hierarchy:
- name: "osfamily/major release"
paths:
# Used to distinguish between Debian and Ubuntu
- "os/%{facts.os.name}/%{facts.os.release.major}.yaml"
- "os/%{facts.os.family}/%{facts.os.release.major}.yaml"
# Used for Solaris
- "os/%{facts.os.family}/%{facts.kernelrelease}.yaml"
- name: "osfamily"
paths:
- "os/%{facts.os.name}.yaml"
- "os/%{facts.os.family}.yaml"
- name: 'common'
path: 'common.yaml'

0 comments on commit 680bbc9

Please sign in to comment.