-
Notifications
You must be signed in to change notification settings - Fork 0
/
hiera.yaml
37 lines (34 loc) · 1.07 KB
/
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
32
33
34
35
36
---
version: 5
defaults:
datadir: data
data_hash: yaml_data
hierarchy:
- name: 'Secure'
lookup_key: eyaml_lookup_key
path: 'secrets.yaml'
options:
pkcs7_private_key: /etc/puppetlabs/secure/keys/private_key.pkcs7.pem
pkcs7_public_key: /etc/puppetlabs/secure/keys/public_key.pkcs7.pem
- name: 'Per node data'
paths:
- "nodes/%{trusted.certname}-%{environment}.yaml"
- "nodes/%{trusted.certname}.yaml"
- name: "Environment based settings"
path: "%{environment}.yaml"
- name: "Roles data"
paths:
- "role/%{trusted.extensions.pp_role}.yaml"
- name: "Physical/Virtual"
path: "virtual/%{facts.virtual}_%{facts.os.name}.yaml"
- name: 'osfamily/major release'
paths:
- "os/%{facts.os.family}/%{facts.os.release.major}.yaml"
# Used to distinguish between Debian and Ubuntu
- "os/%{facts.os.name}/%{facts.os.release.major}.yaml"
- name: 'Name/Family (eg Debian/Ubuntu)'
paths:
- "os/%{facts.os.family}.yaml"
- "os/%{facts.os.name}.yaml"
- name: 'common'
path: 'common.yaml'