aboutsummaryrefslogtreecommitdiff
path: root/modules/base_installation/templates/puppet/host_ldap_add_top.info.erb
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-08-18 19:30:29 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-08-18 19:30:29 +0200
commited7b09a7b7c88c49e4fddb8cbe49e6a4ce6bce10 (patch)
tree3819efff8336fdda1fef8fc78fd2fbc0791693af /modules/base_installation/templates/puppet/host_ldap_add_top.info.erb
parentb84916dd6c1bd5db098ecdd86f3f60ce22d1c1d6 (diff)
parent6667f52e8017065c9b5f14c8025458b38029a800 (diff)
downloadPuppet-ed7b09a7b7c88c49e4fddb8cbe49e6a4ce6bce10.tar.gz
Puppet-ed7b09a7b7c88c49e4fddb8cbe49e6a4ce6bce10.tar.zst
Puppet-ed7b09a7b7c88c49e4fddb8cbe49e6a4ce6bce10.zip
Merge branch 'dev'
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.erb16
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#### Please add this node to LDAP:
2ldapadd -D "cn=root,<%= @ldap_base %>" -W << 'EOF'
3dn: <%= @ldap_dn %>
4cn: <%= @ldap_cn %>
5objectclass: device
6objectclass: top
7objectclass: simpleSecurityObject
8objectclass: puppetClient
9<%- unless @ips.empty? -%>
10objectclass: 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 -%>
14environment: <%= @environment %>
15puppetVar: real_hostname=<%= @real_hostname %>
16userpassword: {SSHA}<%= Base64.encode64(Digest::SHA1.digest(@ldap_password+@ssha_ldap_seed)+@ssha_ldap_seed).chomp! %>