diff options
Diffstat (limited to 'modules/base_installation/templates/puppet')
-rw-r--r-- | modules/base_installation/templates/puppet/host_ldap.info.erb | 19 |
1 files changed, 19 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 f742da7..525739b 100644 --- a/modules/base_installation/templates/puppet/host_ldap.info.erb +++ b/modules/base_installation/templates/puppet/host_ldap.info.erb | |||
@@ -7,6 +7,11 @@ objectclass: device | |||
7 | objectclass: top | 7 | objectclass: top |
8 | objectclass: simpleSecurityObject | 8 | objectclass: simpleSecurityObject |
9 | objectclass: puppetClient | 9 | objectclass: puppetClient |
10 | <%- unless @ips.empty? -%> | ||
11 | objectclass: ipHost | ||
12 | <% unless @ips["v4"].nil? -%>ipHostNumber: <%= @ips["v4"]["ipAddress"] %><%- end %> | ||
13 | <% unless @ips["v6"].nil? -%>ipHostNumber: <%= @ips["v6"]["ipAddress"] %>/<%= @ips["v6"]["mask"] %><%- end %> | ||
14 | <%- end -%> | ||
10 | userpassword: {SSHA}<%= Base64.encode64(Digest::SHA1.digest(@ldap_password+@ssha_ldap_seed)+@ssha_ldap_seed).chomp! %> | 15 | userpassword: {SSHA}<%= Base64.encode64(Digest::SHA1.digest(@ldap_password+@ssha_ldap_seed)+@ssha_ldap_seed).chomp! %> |
11 | EOF | 16 | EOF |
12 | #### Or modify an existing entry: | 17 | #### Or modify an existing entry: |
@@ -15,4 +20,18 @@ dn: <%= @ldap_dn %> | |||
15 | changetype: modify | 20 | changetype: modify |
16 | replace: userPassword | 21 | replace: userPassword |
17 | userpassword: {SSHA}<%= Base64.encode64(Digest::SHA1.digest(@ldap_password+@ssha_ldap_seed)+@ssha_ldap_seed).chomp! %> | 22 | userpassword: {SSHA}<%= Base64.encode64(Digest::SHA1.digest(@ldap_password+@ssha_ldap_seed)+@ssha_ldap_seed).chomp! %> |
23 | <%- unless @ips.empty? -%> | ||
24 | - | ||
25 | delete: ipHostNumber | ||
26 | <%- unless @ips["v4"].nil? -%> | ||
27 | - | ||
28 | add: ipHostNumber | ||
29 | ipHostNumber: <%= @ips["v4"]["ipAddress"] %> | ||
30 | <%- end -%> | ||
31 | <%- unless @ips["v6"].nil? -%> | ||
32 | - | ||
33 | add: ipHostNumber | ||
34 | ipHostNumber: <%= @ips["v6"]["ipAddress"] %>/<%= @ips["v6"]["mask"] %> | ||
35 | <%- end -%> | ||
36 | <%- end -%> | ||
18 | EOF | 37 | EOF |