summaryrefslogtreecommitdiff
path: root/hiera.yaml
diff options
context:
space:
mode:
authorHendrik Jäger <hendrik.jaeger@dswiss.com>2022-06-22 09:49:37 +0200
committerHendrik Jäger <hendrik.jaeger@dswiss.com>2022-06-22 09:49:37 +0200
commit4048e12efcb52a63f0304e679dc6c6e96a139146 (patch)
tree2f34a681b4ea5fa4a0ac8d3c0c55b4c82bd58899 /hiera.yaml
initial
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..545fff3
--- /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:
+ # 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'