]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - environments/production/hiera.yaml
Fetch node informations from LDAP
[perso/Immae/Projets/Puppet.git] / environments / production / hiera.yaml
index 095a110f60e211835ca0dce0bda7398718c96046..a63fc9232bdd3c7075f8779e56bb7bc23f9b1d0c 100644 (file)
@@ -6,11 +6,11 @@ defaults:
   data_hash: yaml_data
 
 hierarchy:
-  - name: "Per-node data"
-    path: "nodes/%{facts.ec2_metadata.hostname}.yaml"
+  - name: "Initialization variables"
+    path: "/root/puppet_variables.json"
 
   - name: "Per-role data"
-    mapped_paths: [roles, role, "roles/%{role}.yaml"]
+    mapped_paths: [ldapvar.self.vars.roles, role, "roles/%{role}.yaml"]
 
   - name: "Per-type data"
     path: "types/%{facts.ec2_metadata.instance-type}.yaml"