forked from ComputeCanada/puppet-magic_castle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hiera.yaml
58 lines (58 loc) · 2.08 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
version: 5
defaults:
# The default value for "datadir" is "data" under the same directory as the hiera.yaml
# file (this file)
# When specifying a datadir, make sure the directory exists.
# See https://puppet.com/docs/puppet/latest/environments_about.html for further details on environments.
# datadir: data
# data_hash: yaml_data
hierarchy:
- name: "Per hostname"
globs:
- "user_data/hostnames/%{facts.networking.hostname}/*.yaml"
- "user_data/hostnames/%{facts.networking.hostname}.yaml"
lookup_key: eyaml_lookup_key # eyaml backend
options:
pkcs7_private_key: /etc/puppetlabs/puppet/eyaml/private_key.pkcs7.pem
- name: "Per prefix"
globs:
- "user_data/prefixes/%{facts.prefix}/*.yaml"
- "user_data/prefixes/%{facts.prefix}.yaml"
lookup_key: eyaml_lookup_key # eyaml backend
options:
pkcs7_private_key: /etc/puppetlabs/puppet/eyaml/private_key.pkcs7.pem
- name: "Rest of user data"
globs:
- "user_data/*.yaml"
- "user_data.yaml"
lookup_key: eyaml_lookup_key # eyaml backend
options:
pkcs7_private_key: /etc/puppetlabs/puppet/eyaml/private_key.pkcs7.pem
- name: "Terraform data"
path: "terraform_data.yaml"
lookup_key: eyaml_lookup_key # eyaml backend
options:
pkcs7_private_key: /etc/puppetlabs/puppet/eyaml/private_key.pkcs7.pem
- name: "Terraform self"
data_hash: terraform_self
path: "terraform_data.yaml"
options:
hostname: "%{facts.networking.hostname}"
- name: "Software stack"
path: "software_stack/%{facts.software_stack}.yaml"
- name: "Cloud provider"
path: "cloud/%{facts.cloud.provider}/%{facts.cloud.region}.yaml"
- name: "OS version"
path: "os/%{facts.os.family}/%{facts.os.release.major}.yaml"
- name: "Other YAML hierarchy levels"
paths:
- "common.yaml"
- name: "hieradata generated by boostrap.sh"
lookup_key: eyaml_lookup_key # eyaml backend
paths:
- "bootstrap.yaml"
options:
pkcs7_private_key: /etc/puppetlabs/puppet/eyaml/boot_private_key.pkcs7.pem
- name: "site.pp definition"
path: "site.yaml"