aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openldap/manifests/init.pp
blob: 35455d1ae63fdf86e83448b898e12583862bb2ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class openldap {
    package { 'openldap-servers': }

    service { 'ldap':
        subscribe => Package['openldap-servers'],
        require   => Openssl::Self_signed_cert["ldap.$::domain"],
    }

    exec { '/etc/init.d/ldap check':
        refreshonly => true,
        notify      => Service['ldap'],
    }

    file { '/etc/ssl/openldap/':
        ensure => directory,
    }

    openssl::self_signed_cert{ "ldap.$::domain":
        directory => '/etc/ssl/openldap/',
    }

    openldap::config {
        '/etc/openldap/slapd.conf':
            content => '';
        '/etc/openldap/mandriva-dit-access.conf':
            content => '';
        '/etc/sysconfig/ldap':
            content => '';
    }
}