]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blob - environments/production/hiera.yaml
44c7ecdb060fa55532464ec1cd98ca3edbcd16fe
[perso/Immae/Projets/Puppet.git] / environments / production / hiera.yaml
1 ---
2 version: 5
3
4 defaults:
5 datadir: data
6 data_hash: yaml_data
7
8 hierarchy:
9 # FIXME: those informations should be taken in LDAP, but bootstrap
10 # problem for the hostname
11 - name: "Per-named-node data"
12 mapped_paths: [ldapvar.self.cn, hostname, "named_nodes/%{hostname}.yaml"]
13
14 - name: "Per-node data"
15 path: "nodes/%{facts.ec2_metadata.hostname}.yaml"
16 ### /FIXME
17
18 - name: "Per-role data"
19 mapped_paths: [ldapvar.self.vars.roles, role, "roles/%{role}.yaml"]
20
21 - name: "Per-type data"
22 path: "types/%{facts.ec2_metadata.instance-type}.yaml"
23
24 - name: "Common data"
25 path: "common.yaml"