-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhiera.yaml
31 lines (27 loc) · 819 Bytes
/
hiera.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
version: 5
defaults:
datadir: hieradata
data_hash: yaml_data
hierarchy:
# Data specific to a node to allow for easy overrides
- name: "Per-node data"
paths:
- "nodes/%{trusted.certname}.yaml"
# Sensitive data that needs to be encrypted at rest.
- name: "Secure encrypted data"
lookup_key: eyaml_lookup_key
paths:
- "secure.eyaml"
options:
pkcs7_private_key: "%{settings::confdir}/keys/secure.private.pkcs7.pem"
pkcs7_public_key: "%{settings::codedir}/environments/%{::environment}/hieradata/eyaml_pubkeys/secure.public.pkcs7.pem"
# Data specific to a domain/subdomain.
- name: "Per-domain data"
paths:
- "domains/%{facts.domain}.yaml"
# Global data
- name: "Environment data"
paths:
- "%{::environment}.yaml"
- "common.yaml"