aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-06-25 23:29:23 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-06-25 23:29:23 +0200
commit96cda4dc280242305aba5aa509f95cd981784a22 (patch)
treef6e0e86a0fa91f3205c92a56b773dd136082f07f /modules
parent35fcf209830771fd3d9243ace3bb123fdf643b8e (diff)
downloadPuppet-96cda4dc280242305aba5aa509f95cd981784a22.tar.gz
Puppet-96cda4dc280242305aba5aa509f95cd981784a22.tar.zst
Puppet-96cda4dc280242305aba5aa509f95cd981784a22.zip
Add real hostname puppetVar to ldap
Diffstat (limited to 'modules')
-rw-r--r--modules/base_installation/templates/puppet/host_ldap.info.erb1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/base_installation/templates/puppet/host_ldap.info.erb b/modules/base_installation/templates/puppet/host_ldap.info.erb
index 9c79d3c..7afdf2d 100644
--- a/modules/base_installation/templates/puppet/host_ldap.info.erb
+++ b/modules/base_installation/templates/puppet/host_ldap.info.erb
@@ -12,6 +12,7 @@ objectclass: ipHost
12<% unless @ips["v6"].nil? -%>ipHostNumber: <%= @ips["v6"]["ipAddress"] %>/<%= @ips["v6"]["mask"] %><%- end %> 12<% unless @ips["v6"].nil? -%>ipHostNumber: <%= @ips["v6"]["ipAddress"] %>/<%= @ips["v6"]["mask"] %><%- end %>
13<%- end -%> 13<%- end -%>
14environment: <%= @environment %> 14environment: <%= @environment %>
15puppetVar: real_hostname=<%= @real_hostname %>
15userpassword: {SSHA}<%= Base64.encode64(Digest::SHA1.digest(@ldap_password+@ssha_ldap_seed)+@ssha_ldap_seed).chomp! %> 16userpassword: {SSHA}<%= Base64.encode64(Digest::SHA1.digest(@ldap_password+@ssha_ldap_seed)+@ssha_ldap_seed).chomp! %>
16EOF 17EOF
17#### Or modify an existing entry: 18#### Or modify an existing entry: