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

Last change on this file since 529 was 529, checked in by sebas, 12 years ago

agrego libpam-crack + config pam.d/common*

File size: 1.2 KB
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        "libpam-cracklib",
16        "nscd",
17        ]: ensure => installed,
18    }
19
20    file {
21        "/etc/ldap.conf":
22            require => Package["base-files"],
23            ensure => present,
24            content => template("openldap/ldap.conf.erb");
25        "/etc/ldap/ldap.conf":
26            require => Package["base-files"],
27            ensure => present,
28            content => template("openldap/ldap.conf.erb");
29        "/etc/nsswitch.conf":
30            source => "puppet:///openldap/etc/nsswitch.conf",
31            ensure => present,
32            require => Package["base-files"],
33        "/etc/pam.d":
34            ensure  => directory,
35            mode    => 644,
36            owner   => root,
37            group   => root,
38            source  => "puppet:///openldap/etc/pam.d/",
39            recurse => "true",
40            require => Package[base-files];
41    }
42}
Note: See TracBrowser for help on using the repository browser.