summaryrefslogtreecommitdiff
path: root/templates/hiera.yaml.j2
blob: 23395a2183af1e80b4416d8ce3d74d4c027723e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
:hierarchy:
  # Use private hieradata first
  # Puppet3 paths
  - "hieradata/%{::environment}/fqdn/%{::fqdn}"
  - "hieradata/%{::environment}/group/%{group}" # no :: because group is set at nodescope
  - "hieradata/%{::environment}/common"
  # Puppet4 paths
  - "%{::environment}/hieradata/fqdn/%{::fqdn}"
  - "%{::environment}/hieradata/group/%{group}" # no :: because group is set at nodescope
  - "%{::environment}/hieradata/common"
  # Use public hieradata second, also be environmentally aware
  - "%{::environment}/hiera/fqdn/%{::fqdn}"
  - "%{::environment}/hiera/group/%{group}" # no :: because group is set at nodescope
  - "%{::environment}/hiera/common"
:backends:
  - yaml
:yaml:
  :datadir: "{{ puppet_hiera_datadir }}"