aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/common.yaml1
-rw-r--r--hiera.yaml21
-rw-r--r--metadata.json4
3 files changed, 24 insertions, 2 deletions
diff --git a/data/common.yaml b/data/common.yaml
new file mode 100644
index 0000000..ed97d53
--- /dev/null
+++ b/data/common.yaml
@@ -0,0 +1 @@
+---
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'
diff --git a/metadata.json b/metadata.json
index 15792dc..1630007 100644
--- a/metadata.json
+++ b/metadata.json
@@ -61,6 +61,6 @@
}
],
"pdk-version": "1.14.0",
- "template-url": "https://github.com/puppetlabs/pdk-templates#master",
- "template-ref": "heads/master-0-g6b5ed92"
+ "template-url": "https://github.com/puppetlabs/pdk-templates#1.14.0",
+ "template-ref": "1.14.0-0-g1bf3a4e"
}