Migrate from legacy fact

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
This commit is contained in:
Patrik Holmqvist 2024-06-19 14:07:13 +02:00
parent bc9d1dc960
commit 4231b4ac1d
Signed by: pahol
GPG key ID: 5D5B0D4E93F77273

View file

@ -21,7 +21,7 @@ hierarchy:
pkcs7_public_key: /etc/hiera/eyaml/public_certkey.pkcs7.pem pkcs7_public_key: /etc/hiera/eyaml/public_certkey.pkcs7.pem
- name: "Overrides per distribution" - name: "Overrides per distribution"
path: "dist_%{::lsbdistcodename}_override.yaml" path: "dist_%{facts.os.distro.codename}_override.yaml"
- name: "Data common to whole environment" - name: "Data common to whole environment"
path: "common.yaml" path: "common.yaml"