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/data/nodes/vps443660.novalocal.yaml | 1 + environments/production/data/types/vps-ovhssd-1.yaml | 1 - environments/production/hiera.yaml | 6 ++++++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 environments/production/data/nodes/vps443660.novalocal.yaml (limited to 'environments') diff --git a/environments/production/data/nodes/vps443660.novalocal.yaml b/environments/production/data/nodes/vps443660.novalocal.yaml new file mode 100644 index 0000000..e6d3c1c --- /dev/null +++ b/environments/production/data/nodes/vps443660.novalocal.yaml @@ -0,0 +1 @@ +base_installation::system_hostname: foo.immae.eu diff --git a/environments/production/data/types/vps-ovhssd-1.yaml b/environments/production/data/types/vps-ovhssd-1.yaml index 217dd82..968bf6b 100644 --- a/environments/production/data/types/vps-ovhssd-1.yaml +++ b/environments/production/data/types/vps-ovhssd-1.yaml @@ -5,4 +5,3 @@ classes: base_installation::grub_device: "/dev/sdb" base_installation::ldap_cert_path: "/etc/ssl/certs/ca-certificates.crt" -base_installation::system_hostname: "new.immae.eu" 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