]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blame - environments/production/hiera.yaml
Make use of LDAP variables to configure node
[perso/Immae/Projets/Puppet.git] / environments / production / hiera.yaml
CommitLineData
0b62a18b
IB
1---
2version: 5
3
4defaults:
5 datadir: data
6 data_hash: yaml_data
7
8hierarchy:
503e4cf5
IB
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
0b62a18b
IB
14 - name: "Per-node data"
15 path: "nodes/%{facts.ec2_metadata.hostname}.yaml"
503e4cf5 16### /FIXME
0b62a18b
IB
17
18 - name: "Per-role data"
945ae444 19 mapped_paths: [ldapvar.self.vars.roles, role, "roles/%{role}.yaml"]
0b62a18b
IB
20
21 - name: "Per-type data"
22 path: "types/%{facts.ec2_metadata.instance-type}.yaml"
23
24 - name: "Common data"
25 path: "common.yaml"