Skip to content

Commit 7264b63

Browse files
committed
Enable Hiera 5
This commit enables the control repo to use Hiera 5 environment-level hiera hierarchy. This means adding a hiera.yaml to the repo, and moving hieradata/ => data/. We should do this to the control-repo template new customers base off of because in a Hiera 5 world, the global hiera.yaml should be very minimal (possibly even ONLY having the console level), and everything else (nodes, common) belongs in the environment hiera.yaml. This control-repo template is how people start using Puppet. It should reflect using our most modern technologies.
1 parent 05d7620 commit 7264b63

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed
File renamed without changes.
File renamed without changes.

hiera.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
version: 5
3+
4+
defaults:
5+
datadir: "data"
6+
7+
hierarchy:
8+
- name: 'Yaml backend'
9+
data_hash: yaml_data
10+
paths:
11+
- "nodes/%{trusted.certname}.yaml"
12+
- 'common.yaml'

0 commit comments

Comments
 (0)