aboutsummaryrefslogtreecommitdiff
path: root/hiera.yaml
diff options
context:
space:
mode:
authormihaibuzgau <mihai.buzgau@puppet.com>2019-10-24 13:58:09 +0300
committermihaibuzgau <mihai.buzgau@puppet.com>2019-10-24 13:58:09 +0300
commit283a3f517b183372a61b5eb09ce083f893575eab (patch)
treed7b6ad71e9eec66f6340082a8a31bbcf82e3378c /hiera.yaml
parent420f52bc6dbd507e4d0e62a249c82403cb7152fc (diff)
downloadpuppet-hosts_core-283a3f517b183372a61b5eb09ce083f893575eab.tar.gz
puppet-hosts_core-283a3f517b183372a61b5eb09ce083f893575eab.tar.bz2
(maint) Update module using PDK 1.14.0
Diffstat (limited to 'hiera.yaml')
-rw-r--r--hiera.yaml21
1 files changed, 21 insertions, 0 deletions
diff --git a/hiera.yaml b/hiera.yaml
new file mode 100644
index 0000000..2251c23
--- /dev/null
+++ b/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:
+ - "os/%{facts.os.family}/%{facts.os.release.major}.yaml"
+ # Used for Solaris
+ - "os/%{facts.os.family}/%{facts.kernelrelease}.yaml"
+ # Used to distinguish between Debian and Ubuntu
+ - "os/%{facts.os.name}/%{facts.os.release.major}.yaml"
+ - name: "osfamily"
+ paths:
+ - "os/%{facts.os.family}.yaml"
+ - "os/%{facts.os.name}.yaml"
+ - name: 'common'
+ path: 'common.yaml'