From 503e4cf5c54e3fe4b802038e8917341c4ce803e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 10 Sep 2017 12:45:41 +0200 Subject: Make use of LDAP variables to configure node --- environments/production/hiera.yaml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'environments/production/hiera.yaml') 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: 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"] -- cgit v1.2.3