summaryrefslogtreecommitdiff
path: root/templates/hiera.yaml.j2
blob: 496fb5a253a8661668b0ca71ed5065b100dbda90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
:hierarchy:
  # Use private hieradata first. Align naming with ansible so that the private
  # data can exist in a single copy for both ansible and puppet
  # Puppet3 paths
  - "hieradata/%{::environment}/host_vars/%{::fqdn}"
  - "hieradata/%{::environment}/group_vars/%{group}" # no :: because group is set at nodescope
  - "hieradata/%{::environment}/group_vars/all"
  # Puppet4 paths
  - "%{::environment}/hieradata/host_vars/%{::fqdn}"
  - "%{::environment}/hieradata/group_vars/%{group}" # no :: because group is set at nodescope
  - "%{::environment}/hieradata/group_vars/all"
  # Use public hieradata second, also be environmentally aware. Keep this
  # in the old structure so that we don't have to do a dance. There isn't much
  # here, and it can be transferred piecemeal.
  - "%{::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 }}"