diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-06-25 23:29:23 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-06-25 23:29:23 +0200 |
commit | 96cda4dc280242305aba5aa509f95cd981784a22 (patch) | |
tree | f6e0e86a0fa91f3205c92a56b773dd136082f07f /modules | |
parent | 35fcf209830771fd3d9243ace3bb123fdf643b8e (diff) | |
download | Puppet-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.erb | 1 |
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 -%> |
14 | environment: <%= @environment %> | 14 | environment: <%= @environment %> |
15 | puppetVar: real_hostname=<%= @real_hostname %> | ||
15 | userpassword: {SSHA}<%= Base64.encode64(Digest::SHA1.digest(@ldap_password+@ssha_ldap_seed)+@ssha_ldap_seed).chomp! %> | 16 | userpassword: {SSHA}<%= Base64.encode64(Digest::SHA1.digest(@ldap_password+@ssha_ldap_seed)+@ssha_ldap_seed).chomp! %> |
16 | EOF | 17 | EOF |
17 | [0;35m#### Or modify an existing entry:[0m | 18 | [0;35m#### Or modify an existing entry:[0m |