-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhiera.yaml
40 lines (33 loc) · 1.29 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
37
38
39
40
---
version: 5
defaults: # Used for any hierarchy level that omits these keys.
datadir: data # This path is relative to hiera.yaml's directory.
hierarchy:
- name: "node Level"
lookup_key: eyaml_lookup_key # eyaml backend
paths:
- "nodes/%{trusted.certname}.eyaml"
options:
pkcs7_private_key: "/etc/puppetlabs/puppet/eyaml/private_key.pkcs7.pem"
pkcs7_public_key: "/etc/puppetlabs/puppet/eyaml/public_key.pkcs7.pem"
- name: "datacenter Information"
data_hash: yaml_data # Use the built-in YAML backend.
paths:
# Used to distinguish between Debian and Ubuntu
- "datacenter/%{datacenter}/%{datacenter}.yaml"
- name: "osfamily/major release"
data_hash: yaml_data # Use the built-in YAML backend.
paths:
# Used to distinguish between Debian and Ubuntu
- "os/%{facts.os.name}/%{facts.os.release.major}.yaml"
- "os/%{facts.os.family}/%{facts.os.release.major}.yaml"
# Used for Solaris
- "os/%{facts.os.family}/%{facts.kernelrelease}.yaml"
- name: "osfamily"
data_hash: yaml_data # Use the built-in YAML backend.
paths:
- "os/%{facts.os.name}.yaml"
- "os/%{facts.os.family}.yaml"
- name: 'common'
data_hash: yaml_data # Use the built-in YAML backend.
path: 'common.yaml'