aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openldap
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-05-29 12:09:28 +0000
committerMichael Scherer <misc@mageia.org>2011-05-29 12:09:28 +0000
commita2b9f58a22f444c800cb23870974461285a7ddc1 (patch)
tree352e2656460fd3e51c68e6e66d96c01ecaba2c15 /modules/openldap
parent55b047af82c8f268c10c4b672da6aed4cc73739e (diff)
downloadpuppet-a2b9f58a22f444c800cb23870974461285a7ddc1.tar
puppet-a2b9f58a22f444c800cb23870974461285a7ddc1.tar.gz
puppet-a2b9f58a22f444c800cb23870974461285a7ddc1.tar.bz2
puppet-a2b9f58a22f444c800cb23870974461285a7ddc1.tar.xz
puppet-a2b9f58a22f444c800cb23870974461285a7ddc1.zip
split the configuration for the test database in another file ( to prepare for slave server )
Diffstat (limited to 'modules/openldap')
-rw-r--r--modules/openldap/manifests/init.pp2
-rw-r--r--modules/openldap/templates/slapd.conf9
-rw-r--r--modules/openldap/templates/slapd.test.conf10
3 files changed, 11 insertions, 10 deletions
diff --git a/modules/openldap/manifests/init.pp b/modules/openldap/manifests/init.pp
index 417abd21..3d55cb5f 100644
--- a/modules/openldap/manifests/init.pp
+++ b/modules/openldap/manifests/init.pp
@@ -70,7 +70,7 @@ class openldap {
}
file { '/etc/openldap/slapd.conf':
- content => template("openldap/slapd.conf"),
+ content => template("openldap/slapd.conf", "openldap/slapd.test.conf"),
}
file { '/etc/sysconfig/ldap':
diff --git a/modules/openldap/templates/slapd.conf b/modules/openldap/templates/slapd.conf
index 71721dc5..84600e36 100644
--- a/modules/openldap/templates/slapd.conf
+++ b/modules/openldap/templates/slapd.conf
@@ -112,13 +112,4 @@ access to dn.subtree="cn=Monitor"
by group.exact="cn=LDAP Admins,ou=System Groups,<%= dc_suffix %>" read
by * none
-database bdb
-suffix "dc=test_ldap"
-directory /var/lib/ldap/test
-rootdn "cn=manager,dc=test_ldap"
-rootpw "<%= ldap_test_password %>"
-authz-regexp "gidNumber=0\\\+uidNumber=0,cn=peercred,cn=external,cn=auth"
- "cn=manager,dc=test_ldap"
-# force ssl
-security ssf=56
diff --git a/modules/openldap/templates/slapd.test.conf b/modules/openldap/templates/slapd.test.conf
new file mode 100644
index 00000000..355efb8e
--- /dev/null
+++ b/modules/openldap/templates/slapd.test.conf
@@ -0,0 +1,10 @@
+database bdb
+suffix "dc=test_ldap"
+directory /var/lib/ldap/test
+rootdn "cn=manager,dc=test_ldap"
+rootpw "<%= ldap_test_password %>"
+authz-regexp "gidNumber=0\\\+uidNumber=0,cn=peercred,cn=external,cn=auth"
+ "cn=manager,dc=test_ldap"
+# force ssl
+security ssf=56
+