]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Add real hostname puppetVar to ldap
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 25 Jun 2018 21:29:23 +0000 (23:29 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 25 Jun 2018 21:29:23 +0000 (23:29 +0200)
modules/base_installation/templates/puppet/host_ldap.info.erb

index 9c79d3c8480bd6675c91d74bd495e3a08f64ac8e..7afdf2dd3ac2d9a629c31e77c695b6df8012bf7a 100644 (file)
@@ -12,6 +12,7 @@ objectclass: ipHost
 <% unless @ips["v6"].nil? -%>ipHostNumber: <%= @ips["v6"]["ipAddress"] %>/<%= @ips["v6"]["mask"] %><%- end %>
 <%- end -%>
 environment: <%= @environment %>
+puppetVar: real_hostname=<%= @real_hostname %>
 userpassword: {SSHA}<%= Base64.encode64(Digest::SHA1.digest(@ldap_password+@ssha_ldap_seed)+@ssha_ldap_seed).chomp! %>
 EOF
 \e[0;35m#### Or modify an existing entry:\e[0m