]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blob - environments/production/hiera.yaml
9cedf4782183e0fda9246de2d00e2f292cfb536b
[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: "Initialization variables"
19 path: "/root/puppet_variables.json"
20
21 - name: "Per-role data"
22 mapped_paths: [ldapvar.self.vars.roles, role, "roles/%{role}.yaml"]
23
24 - name: "Per-type data"
25 path: "types/%{facts.ec2_metadata.instance-type}.yaml"
26
27 - name: "Common data"
28 path: "common.yaml"