]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - environments/integration/hiera.yaml
Fetch node informations from LDAP
[perso/Immae/Projets/Puppet.git] / environments / integration / hiera.yaml
diff --git a/environments/integration/hiera.yaml b/environments/integration/hiera.yaml
new file mode 100644 (file)
index 0000000..a63fc92
--- /dev/null
@@ -0,0 +1,19 @@
+---
+version: 5
+
+defaults:
+  datadir: data
+  data_hash: yaml_data
+
+hierarchy:
+  - name: "Initialization variables"
+    path: "/root/puppet_variables.json"
+
+  - name: "Per-role data"
+    mapped_paths: [ldapvar.self.vars.roles, role, "roles/%{role}.yaml"]
+
+  - name: "Per-type data"
+    path: "types/%{facts.ec2_metadata.instance-type}.yaml"
+
+  - name: "Common data"
+    path: "common.yaml"