]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - environments/production/hiera.yaml
Make use of LDAP variables to configure node
[perso/Immae/Projets/Puppet.git] / environments / production / hiera.yaml
index f5e5bc22105400b09bbbbec7d2e59e0a99960cee..44c7ecdb060fa55532464ec1cd98ca3edbcd16fe 100644 (file)
@@ -6,8 +6,14 @@ defaults:
   data_hash: yaml_data
 
 hierarchy:
+# FIXME: those informations should be taken in LDAP, but bootstrap
+# problem for the hostname
+  - name: "Per-named-node data"
+    mapped_paths: [ldapvar.self.cn, hostname, "named_nodes/%{hostname}.yaml"]
+
   - name: "Per-node data"
     path: "nodes/%{facts.ec2_metadata.hostname}.yaml"
+### /FIXME
 
   - name: "Per-role data"
     mapped_paths: [ldapvar.self.vars.roles, role, "roles/%{role}.yaml"]