aboutsummaryrefslogtreecommitdiff
path: root/modules/base_installation/templates/puppet
diff options
context:
space:
mode:
Diffstat (limited to 'modules/base_installation/templates/puppet')
-rw-r--r--modules/base_installation/templates/puppet/host_ldap.info.erb17
-rw-r--r--modules/base_installation/templates/puppet/puppet.conf.erb12
2 files changed, 29 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
new file mode 100644
index 0000000..a350c37
--- /dev/null
+++ b/modules/base_installation/templates/puppet/host_ldap.info.erb
@@ -0,0 +1,17 @@
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
9userpassword: {SSHA}<%= Base64.encode64(Digest::SHA1.digest(@ldap_password+@ssha_ldap_seed)+@ssha_ldap_seed).chomp! %>
10EOF
11#### Or modify an existing entry:
12ldapmodify -D "cn=root,<%= @ldap_base %>" -W << 'EOF'
13dn: <%= @ldap_dn %>
14changetype: modify
15replace: userPassword
16userpassword: {SSHA}<%= Base64.encode64(Digest::SHA1.digest(@ldap_password+@ssha_ldap_seed)+@ssha_ldap_seed).chomp! %>
17EOF
diff --git a/modules/base_installation/templates/puppet/puppet.conf.erb b/modules/base_installation/templates/puppet/puppet.conf.erb
new file mode 100644
index 0000000..99d9fc3
--- /dev/null
+++ b/modules/base_installation/templates/puppet/puppet.conf.erb
@@ -0,0 +1,12 @@
1[main]
2ssldir = <%= @puppet_ssl_path %>
3
4node_terminus = ldap
5ldapserver = <%= @ldap_server %>
6ldaptls = true
7ldapbase = <%= @ldap_base %>
8ldapuser = <%= @ldap_dn %>
9ldappassword = <%= @ldap_password %>
10ldapclassattrs = puppetClass
11ldapparentattr = parentNode
12ldapstackedattrs = puppetVar