diff options
Diffstat (limited to 'modules/base_installation/templates/puppet/host_ldap_add_top.info.erb')
-rw-r--r-- | modules/base_installation/templates/puppet/host_ldap_add_top.info.erb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/base_installation/templates/puppet/host_ldap_add_top.info.erb b/modules/base_installation/templates/puppet/host_ldap_add_top.info.erb new file mode 100644 index 0000000..3aafc19 --- /dev/null +++ b/modules/base_installation/templates/puppet/host_ldap_add_top.info.erb | |||
@@ -0,0 +1,16 @@ | |||
1 | [0;35m#### Please add this node to LDAP:[0m | ||
2 | ldapadd -D "cn=root,<%= @ldap_base %>" -W << 'EOF' | ||
3 | dn: <%= @ldap_dn %> | ||
4 | cn: <%= @ldap_cn %> | ||
5 | objectclass: device | ||
6 | objectclass: top | ||
7 | objectclass: simpleSecurityObject | ||
8 | objectclass: puppetClient | ||
9 | <%- unless @ips.empty? -%> | ||
10 | objectclass: ipHost | ||
11 | <% unless @ips["v4"].nil? -%>ipHostNumber: <%= @ips["v4"]["ipAddress"] %><%- end %> | ||
12 | <% unless @ips["v6"].nil? -%>ipHostNumber: <%= @ips["v6"]["ipAddress"] %>/<%= @ips["v6"]["mask"] %><%- end %> | ||
13 | <%- end -%> | ||
14 | environment: <%= @environment %> | ||
15 | puppetVar: real_hostname=<%= @real_hostname %> | ||
16 | userpassword: {SSHA}<%= Base64.encode64(Digest::SHA1.digest(@ldap_password+@ssha_ldap_seed)+@ssha_ldap_seed).chomp! %> | ||