source: trunk/puppet/modules/puppet-openldap/manifests/classes/client.pp @ 526

Last change on this file since 526 was 526, checked in by sebas, 13 years ago

configuracion de nsswitch para usar ldap, config de ldap para que pam lo use

File size: 879 bytes
Line 
1#
2# used like this:
3#
4# ldap_uri = 'ldap://ldap-server'
5# ldap_base = 'dc=example,dc=com'
6# ldap_ssl  = 'true'
7# if ssl is not activated just don't put the line above.
8# include openldap::client
9
10class openldap::client {
11    package { [
12        "base-files",
13        "libnss-ldap",
14        "libpam-ldap",
15        "nscd",
16        ]: ensure => installed,
17    }
18
19    file {
20        "/etc/ldap.conf":
21            require => Package["base-files"],
22            ensure => present,
23            content => template("openldap/ldap.conf.erb");
24        "/etc/ldap/ldap.conf":
25            require => Package["base-files"],
26            ensure => present,
27            content => template("openldap/ldap.conf.erb");
28        "/etc/nsswitch.conf":
29            source => "puppet:///openldap/etc/nsswitch.conf",
30            ensure => present,
31            require => Package["base-files"],
32    }
33}
Note: See TracBrowser for help on using the repository browser.