-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhiera.yaml
37 lines (30 loc) · 1.05 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
---
version: 5
defaults:
datadir: hieradata
lookup_key: eyaml_lookup_key
options:
pkcs7_private_key: /etc/puppetlabs/puppet/eyaml/private_key.pkcs7.pem
pkcs7_public_key: /etc/puppetlabs/puppet/eyaml/public_key.pkcs7.pem
hierarchy:
- name: "Per-node data"
datadir: ../../nodes/master
path: "%{trusted.certname}.yaml"
- name: "Primary Role + environment type values"
path: "primary_role/%{facts.environment_type}/%{primary_role}.yaml"
- name: "Primary Role values"
mapped_paths: [role_parts, role_part, "primary_role/%{role_part}.yaml"]
- name: "OS Version values"
globs:
- "os/%{facts.os.name}/%{facts.os.release.major}/*.yaml"
- "../shared_hieradata/os/%{facts.os.name}/%{facts.os.release.major}/*.yaml"
- name: "OS values"
globs:
- "os/%{facts.os.name}/*.yaml"
- "../shared_hieradata/os/%{facts.os.name}/*.yaml"
- name: "hardware type"
path: "hardwaretype/%{facts.vm_cluster}.yaml"
- name: "Common data"
globs:
- "common/**/*.yaml"
- "../shared_hieradata/common/**/*.yaml"