aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-16 00:22:38 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-16 18:08:12 +0100
commitc15f2234474ff8a8266e26856702b3c561050667 (patch)
tree5df6dfb44ee2d37fbd9cf7b701bdc7881c575857 /modules
parent985b53a258ee18eaca8d437ae532c232a6d19921 (diff)
downloadPuppet-c15f2234474ff8a8266e26856702b3c561050667.tar.gz
Puppet-c15f2234474ff8a8266e26856702b3c561050667.tar.zst
Puppet-c15f2234474ff8a8266e26856702b3c561050667.zip
Move scripts to separate chunks
Diffstat (limited to 'modules')
-rw-r--r--modules/base_installation/templates/puppet/host_ldap.info.erb5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/base_installation/templates/puppet/host_ldap.info.erb b/modules/base_installation/templates/puppet/host_ldap.info.erb
index a71c6f3..9c79d3c 100644
--- a/modules/base_installation/templates/puppet/host_ldap.info.erb
+++ b/modules/base_installation/templates/puppet/host_ldap.info.erb
@@ -1,4 +1,4 @@
1#### Please add this node to LDAP: 1#### Please add this node to LDAP:
2ldapadd -D "cn=root,<%= @ldap_base %>" -W << 'EOF' 2ldapadd -D "cn=root,<%= @ldap_base %>" -W << 'EOF'
3dn: <%= @ldap_dn %> 3dn: <%= @ldap_dn %>
4cn: <%= @ldap_cn %> 4cn: <%= @ldap_cn %>
@@ -14,12 +14,13 @@ objectclass: ipHost
14environment: <%= @environment %> 14environment: <%= @environment %>
15userpassword: {SSHA}<%= Base64.encode64(Digest::SHA1.digest(@ldap_password+@ssha_ldap_seed)+@ssha_ldap_seed).chomp! %> 15userpassword: {SSHA}<%= Base64.encode64(Digest::SHA1.digest(@ldap_password+@ssha_ldap_seed)+@ssha_ldap_seed).chomp! %>
16EOF 16EOF
17#### Or modify an existing entry: 17#### Or modify an existing entry:
18ldapmodify -D "cn=root,<%= @ldap_base %>" -W << 'EOF' 18ldapmodify -D "cn=root,<%= @ldap_base %>" -W << 'EOF'
19dn: <%= @ldap_dn %> 19dn: <%= @ldap_dn %>
20changetype: modify 20changetype: modify
21replace: userPassword 21replace: userPassword
22userpassword: {SSHA}<%= Base64.encode64(Digest::SHA1.digest(@ldap_password+@ssha_ldap_seed)+@ssha_ldap_seed).chomp! %> 22userpassword: {SSHA}<%= Base64.encode64(Digest::SHA1.digest(@ldap_password+@ssha_ldap_seed)+@ssha_ldap_seed).chomp! %>
23-
23replace: environment 24replace: environment
24environment: <%= @environment %> 25environment: <%= @environment %>
25<%- unless @ips.empty? -%> 26<%- unless @ips.empty? -%>