aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openldap/manifests/init.pp
diff options
context:
space:
mode:
authorOlivier Blin <dev@blino.org>2015-11-20 01:21:21 +0100
committerOlivier Blin <dev@blino.org>2015-11-30 01:32:43 +0100
commitf064909d91ab4159bda00f05932dc0e5449b74ce (patch)
tree34147f1a324dea26abc1a0c612a31bc5715ea814 /modules/openldap/manifests/init.pp
parent789a955109028cde1c32bf5f3c1dd9dfc5d02ba7 (diff)
downloadpuppet-f064909d91ab4159bda00f05932dc0e5449b74ce.tar
puppet-f064909d91ab4159bda00f05932dc0e5449b74ce.tar.gz
puppet-f064909d91ab4159bda00f05932dc0e5449b74ce.tar.bz2
puppet-f064909d91ab4159bda00f05932dc0e5449b74ce.tar.xz
puppet-f064909d91ab4159bda00f05932dc0e5449b74ce.zip
openldap: use slapd service instead of ldap on Mageia >= 4
As detected by tmb on new valstar
Diffstat (limited to 'modules/openldap/manifests/init.pp')
-rw-r--r--modules/openldap/manifests/init.pp8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/openldap/manifests/init.pp b/modules/openldap/manifests/init.pp
index b04379b9..c9d26c89 100644
--- a/modules/openldap/manifests/init.pp
+++ b/modules/openldap/manifests/init.pp
@@ -1,14 +1,16 @@
class openldap {
+ include openldap::var
+
package { 'openldap-servers': }
- service { 'ldap':
+ service { $openldap::var::service:
subscribe => Package['openldap-servers'],
require => Openssl::Self_signed_cert["ldap.${::domain}"],
}
- exec { '/etc/init.d/ldap check':
+ exec { "/etc/init.d/${openldap::var::service} check":
refreshonly => true,
- notify => Service['ldap'],
+ notify => Service[$openldap::var::service],
}
file { '/etc/ssl/openldap/':