Use structured facts in hiera.yaml

Legacy facts are no longer enabled by default since Puppet 8.

Change-Id: I2f97154115a120d944034b72260e4bee66553bff
This commit is contained in:
Takashi Kajinami 2023-04-28 16:20:05 +09:00
parent d18e75f05d
commit 95222a53aa
1 changed files with 2 additions and 2 deletions

View File

@ -147,9 +147,9 @@ defaults:
data_hash: yaml_data
hierarchy:
- name: "OS specific"
path: "%{::operatingsystem}.yaml"
path: "%{facts.os.name}.yaml"
- name: "OS family specific"
path: "%{::osfamily}.yaml"
path: "%{facts.os.family}.yaml"
- name: "Common"
path: "common.yaml"
EOF