aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openldap/templates
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-01-22 16:50:20 +0000
committerMichael Scherer <misc@mageia.org>2012-01-22 16:50:20 +0000
commit4dc2092c630fe0bcb947d83ade0709b85176cbca (patch)
treeb6b6d381ea6fd0dd82fadf6bc83055f08d3c73d9 /modules/openldap/templates
parent360b2f24535ba0cf88984f56a4e34c9667c1cfb0 (diff)
downloadpuppet-4dc2092c630fe0bcb947d83ade0709b85176cbca.tar
puppet-4dc2092c630fe0bcb947d83ade0709b85176cbca.tar.gz
puppet-4dc2092c630fe0bcb947d83ade0709b85176cbca.tar.bz2
puppet-4dc2092c630fe0bcb947d83ade0709b85176cbca.tar.xz
puppet-4dc2092c630fe0bcb947d83ade0709b85176cbca.zip
also fill the ldap with server object
Diffstat (limited to 'modules/openldap/templates')
-rw-r--r--modules/openldap/templates/init_ldap.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/openldap/templates/init_ldap.sh b/modules/openldap/templates/init_ldap.sh
index df8d72a4..5f35707b 100644
--- a/modules/openldap/templates/init_ldap.sh
+++ b/modules/openldap/templates/init_ldap.sh
@@ -26,4 +26,15 @@ member: cn=manager,<%= dc_suffix %>
gid+=1
end -%>
+
+<% # FIXME automatically get the list of servers
+for g in ['valstar','alamut'] %>
+dn: cn=<%= g%>.<%= domain %>,ou=Hosts,<%= dc_suffix %>
+objectClass: device
+objectClass: simpleSecurityObject
+cn: <%= g%>.<%= domain %>
+userPassword: x
+<% end %>
+
+
EOF