Puppet Class: ldap::client::includes

Defined in:
modules/ldap/manifests/client/includes.pp

Overview

Parameters:

  • ldapincludes (Any)
  • ldapconfig (Any)


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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'modules/ldap/manifests/client/includes.pp', line 1

class ldap::client::includes($ldapincludes, $ldapconfig) {
    if 'openldap' in $ldapincludes {
        class { '::ldap::client::openldap':
            ldapconfig   => $ldapconfig,
            ldapincludes => $ldapincludes,
        }
    }

    if 'pam' in $ldapincludes {
        class { '::ldap::client::pam':
            ldapconfig => $ldapconfig,
        }
    } else {
        # The ldap nss package recommends this package
        # and this package will reconfigure pam as well as add
        # its support
        package { 'libpam-ldapd':
            ensure => absent,
        }
    }

    if 'nss' in $ldapincludes {
        class { '::ldap::client::nss':
            ldapconfig => $ldapconfig,
        }
    }

    if 'sudo' in $ldapincludes {
        class { '::ldap::client::sudo':
            ldapconfig => $ldapconfig,
        }
    }

    if 'utils' in $ldapincludes {
        class { '::ldap::client::utils':
            ldapconfig => $ldapconfig,
        }
    }

    if 'sssd' in $ldapincludes {
        class { '::ldap::client::sssd':
            ldapconfig   => $ldapconfig,
            ldapincludes => $ldapincludes,
        }
    }

    if 'nosssd' in $ldapincludes {
        class { '::ldap::client::nosssd': }
    }
}