From b9cde449ed89a429dee038141b57ff5d3887ea66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Str=C3=B6mb=C3=A4ck?= <filip.stromback@liu.se> Date: Tue, 8 Dec 2020 08:58:44 +0100 Subject: [PATCH] Added hiera.yaml for key management. --- hiera.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 hiera.yaml diff --git a/hiera.yaml b/hiera.yaml new file mode 100644 index 0000000..0485d51 --- /dev/null +++ b/hiera.yaml @@ -0,0 +1,19 @@ +--- +version: 5 + +defaults: # Used for any hierarchy level that omits these keys. + datadir: data # This path is relative to hiera.yaml's directory. + lookup_key: eyaml_lookup_key # eyaml backend + options: + pkcs7_private_key: /etc/puppetlabs/puppet/keys/private_key.pkcs7.pem + pkcs7_public_key: /etc/puppetlabs/puppet/keys/public_key.pkcs7.pem + +hierarchy: + - name: "Environment" + path: "environment/%{::environment}.yaml" + + - name: "OS family" + path: "os/%{facts.os.family}.yaml" + + - name: 'common' + path: 'common.yaml' -- GitLab