aboutsummaryrefslogtreecommitdiff
path: root/environments
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2017-09-10 12:45:41 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2017-09-10 21:39:23 +0200
commit503e4cf5c54e3fe4b802038e8917341c4ce803e5 (patch)
treeef5bbfe815a9a63487e3b68f957b8ff88aca8e2e /environments
parent945ae444952f3322c4687059f0ba6b7308750feb (diff)
downloadPuppet-503e4cf5c54e3fe4b802038e8917341c4ce803e5.tar.gz
Puppet-503e4cf5c54e3fe4b802038e8917341c4ce803e5.tar.zst
Puppet-503e4cf5c54e3fe4b802038e8917341c4ce803e5.zip
Make use of LDAP variables to configure node
Diffstat (limited to 'environments')
-rw-r--r--environments/production/data/nodes/vps443660.novalocal.yaml1
-rw-r--r--environments/production/data/types/vps-ovhssd-1.yaml1
-rw-r--r--environments/production/hiera.yaml6
3 files changed, 7 insertions, 1 deletions
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:
5 5
6base_installation::grub_device: "/dev/sdb" 6base_installation::grub_device: "/dev/sdb"
7base_installation::ldap_cert_path: "/etc/ssl/certs/ca-certificates.crt" 7base_installation::ldap_cert_path: "/etc/ssl/certs/ca-certificates.crt"
8base_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:
6 data_hash: yaml_data 6 data_hash: yaml_data
7 7
8hierarchy: 8hierarchy:
9# FIXME: those informations should be taken in LDAP, but bootstrap
10# problem for the hostname
11 - name: "Per-named-node data"
12 mapped_paths: [ldapvar.self.cn, hostname, "named_nodes/%{hostname}.yaml"]
13
9 - name: "Per-node data" 14 - name: "Per-node data"
10 path: "nodes/%{facts.ec2_metadata.hostname}.yaml" 15 path: "nodes/%{facts.ec2_metadata.hostname}.yaml"
16### /FIXME
11 17
12 - name: "Per-role data" 18 - name: "Per-role data"
13 mapped_paths: [ldapvar.self.vars.roles, role, "roles/%{role}.yaml"] 19 mapped_paths: [ldapvar.self.vars.roles, role, "roles/%{role}.yaml"]