Patrik Holmqvist
4231b4ac1d
This did not work on modern puppet in ubuntu24: Warning: Interpolation failed with '::lsbdistcodename', but compilation continuing; New syntax inspiration from: https://www.puppet.com/docs/puppet/8/hiera_config_yaml_5#configuring_hiera
27 lines
620 B
YAML
27 lines
620 B
YAML
# Hiera version 5 configuration
|
|
#
|
|
---
|
|
version: 5
|
|
defaults:
|
|
datadir: /etc/hiera/data
|
|
data_hash: yaml_data
|
|
|
|
hierarchy:
|
|
- name: "Per-node data"
|
|
path: "local.yaml"
|
|
|
|
- name: "Per-group data"
|
|
path: "group.yaml"
|
|
|
|
- name: "Per-host secrets"
|
|
path: "local.eyaml"
|
|
lookup_key: eyaml_lookup_key
|
|
options:
|
|
pkcs7_private_key: /etc/hiera/eyaml/private_key.pkcs7.pem
|
|
pkcs7_public_key: /etc/hiera/eyaml/public_certkey.pkcs7.pem
|
|
|
|
- name: "Overrides per distribution"
|
|
path: "dist_%{facts.os.distro.codename}_override.yaml"
|
|
|
|
- name: "Data common to whole environment"
|
|
path: "common.yaml" |