Changeset 526


Ignore:
Timestamp:
Feb 14, 2010, 9:07:15 PM (12 years ago)
Author:
sebas
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/puppet/modules/puppet-openldap/manifests/classes/client.pp

    r444 r526  
     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
    110class openldap::client {
    2   package {"ldap-utils":
    3     ensure => installed,
    4   }
     11    package { [
     12        "base-files",
     13        "libnss-ldap",
     14        "libpam-ldap",
     15        "nscd",
     16        ]: ensure => installed,
     17    }
    518
    6   file {
    7     "/etc/ldap":
    8       ensure  => directory,
    9       owner   => root,
    10       group   => root,
    11       mode    => 755;
    12     "/etc/ldap/ldap.conf":
    13       require => Package["ldap-utils"],
    14       content => template("openldap/ldap.conf.erb");
    15   }
     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    }
    1633}
Note: See TracChangeset for help on using the changeset viewer.