diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-09-10 12:45:41 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-09-10 21:39:23 +0200 |
commit | 503e4cf5c54e3fe4b802038e8917341c4ce803e5 (patch) | |
tree | ef5bbfe815a9a63487e3b68f957b8ff88aca8e2e /environments/production/hiera.yaml | |
parent | 945ae444952f3322c4687059f0ba6b7308750feb (diff) | |
download | Puppet-503e4cf5c54e3fe4b802038e8917341c4ce803e5.tar.gz Puppet-503e4cf5c54e3fe4b802038e8917341c4ce803e5.tar.zst Puppet-503e4cf5c54e3fe4b802038e8917341c4ce803e5.zip |
Make use of LDAP variables to configure node
Diffstat (limited to 'environments/production/hiera.yaml')
-rw-r--r-- | environments/production/hiera.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/environments/production/hiera.yaml b/environments/production/hiera.yaml index f5e5bc2..44c7ecd 100644 --- a/environments/production/hiera.yaml +++ b/environments/production/hiera.yaml | |||
@@ -6,8 +6,14 @@ defaults: | |||
6 | data_hash: yaml_data | 6 | data_hash: yaml_data |
7 | 7 | ||
8 | hierarchy: | 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 | |||
9 | - name: "Per-node data" | 14 | - name: "Per-node data" |
10 | path: "nodes/%{facts.ec2_metadata.hostname}.yaml" | 15 | path: "nodes/%{facts.ec2_metadata.hostname}.yaml" |
16 | ### /FIXME | ||
11 | 17 | ||
12 | - name: "Per-role data" | 18 | - name: "Per-role data" |
13 | mapped_paths: [ldapvar.self.vars.roles, role, "roles/%{role}.yaml"] | 19 | mapped_paths: [ldapvar.self.vars.roles, role, "roles/%{role}.yaml"] |