aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openldap
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2018-03-14 21:49:30 +0200
committerThomas Backlund <tmb@mageia.org>2018-03-14 21:49:30 +0200
commit3db6b11f27665370570d5d3e472236ad72e22194 (patch)
tree3a23ceeb3eced61d148011e332e181690caf916d /modules/openldap
parent437b5a2e290a9d80232aa830b88fb3fe4b9565f6 (diff)
downloadpuppet-3db6b11f27665370570d5d3e472236ad72e22194.tar
puppet-3db6b11f27665370570d5d3e472236ad72e22194.tar.gz
puppet-3db6b11f27665370570d5d3e472236ad72e22194.tar.bz2
puppet-3db6b11f27665370570d5d3e472236ad72e22194.tar.xz
puppet-3db6b11f27665370570d5d3e472236ad72e22194.zip
duvel ldap is still bdb
Diffstat (limited to 'modules/openldap')
-rw-r--r--modules/openldap/templates/slapd.conf8
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/openldap/templates/slapd.conf b/modules/openldap/templates/slapd.conf
index b7f23201..20ecc944 100644
--- a/modules/openldap/templates/slapd.conf
+++ b/modules/openldap/templates/slapd.conf
@@ -30,13 +30,11 @@ pidfile /var/run/ldap/slapd.pid
argsfile /var/run/ldap/slapd.args
modulepath <%= lib_dir %>/openldap
-<% if scope.function_versioncmp([lsbdistrelease, '4']) >= 0 %>
-<% if scope.function_versioncmp([lsbdistrelease, '6']) < 0 -%>
+<% if @hostname == 'duvel' then %>
moduleload back_bdb.la
<% else %>
moduleload back_mdb.la
<% end %>
-<% end %>
moduleload back_monitor.la
moduleload syncprov.la
moduleload ppolicy.la
@@ -66,7 +64,7 @@ access to dn.subtree="cn=Monitor"
by group.exact="cn=LDAP Admins,ou=System Groups,<%= dc_suffix %>" read
by * none
-<% if scope.function_versioncmp([lsbdistrelease, '6']) < 0 -%>
+<% if @hostname == 'duvel' then %>
database bdb
<% else %>
database mdb
@@ -78,7 +76,7 @@ directory /var/lib/ldap
rootdn "cn=manager,<%= dc_suffix %>"
checkpoint 256 5
-<% if scope.function_versioncmp([lsbdistrelease, '6']) < 0 -%>
+<% if @hostname == 'duvel' then %>
# 32Mbytes, can hold about 10k posixAccount entries
dbconfig set_cachesize 0 33554432 1
dbconfig set_lg_bsize 2097152