aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openldap/manifests/slave.pp
blob: a3559ef839e93f79425021d24afc8d4ffd9067b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class openldap::slave($rid) inherits openldap {

    @@openldap::exported_slave { $rid: }

    $sync_password = extlookup("ldap_syncuser-$::hostname",'x')

    # same access rights as master
    Openldap::Config['/etc/openldap/mandriva-dit-access.conf'] {
        content => template('openldap/mandriva-dit-access.conf'),
    }

    Openldap::Config['/etc/openldap/slapd.conf'] {
        content => template('openldap/slapd.conf','openldap/slapd.syncrepl.conf'),
    }

    Openldap::Config['/etc/sysconfig/ldap'] {
        content => template('openldap/ldap.sysconfig'),
    }
}