Puppet Class: ldap::config::labs

Defined in:
modules/ldap/manifests/config/labs.pp

Overview



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
# File 'modules/ldap/manifests/config/labs.pp', line 1

class ldap::config::labs {
    $hieraldapconfig = hiera_hash('labsldapconfig', {})

    $basedn = 'dc=wikimedia,dc=org'
    $servernames = [ $hieraldapconfig['hostname'] ]
    $sudobasedn = $::realm ? {
        'labs'       => "ou=sudoers,cn=${::labsproject},ou=projects,${basedn}",
        'production' => "ou=sudoers,${basedn}"
    }

    $ldapconfig = {
        'servernames'          => $servernames,
        'basedn'               => $basedn,
        'groups_rdn'           => 'ou=groups',
        'users_rdn'            => 'ou=people',
        'domain'               => 'wikimedia',
        'proxyagent'           => "cn=proxyagent,ou=profile,${basedn}",
        'proxypass'            => $hieraldapconfig['proxypass'],
        'script_user_dn'       => "cn=scriptuser,ou=profile,${basedn}",
        'script_user_pass'     => $hieraldapconfig['script_user_pass'],
        'user_id_attribute'    => 'uid',
        'tenant_id_attribute'  => 'cn',
        'ca'                   => 'ca-certificates.crt',
        'sudobasedn'           => $sudobasedn,
        'pagesize'             => '2000',
        'nss_min_uid'          => '499',
    }
}