Changeset 568


Ignore:
Timestamp:
Mar 10, 2010, 5:56:39 PM (12 years ago)
Author:
sebas@…
Message:

agrego una class openldap::client::pammount para mountar el home remoto

File:
1 edited

Legend:

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

    r565 r568  
    6363    }
    6464}
     65
     66#
     67# used like this:
     68#
     69# $pammount_fstype = 'nfs'
     70# $pammount_server = '10.0.0.2'
     71# $pammount_path  = '~'
     72# $pammount_mountpoint = '~'
     73# include openldap::client::pammount
     74
     75class openldap::client::pammount {
     76    package { [
     77        "nfs-common",
     78        "libpam-mount"
     79        ]: ensure => installed
     80    }
     81
     82    case $operatingsystem {
     83        Ubuntu: {
     84            file {
     85                "/etc/security/pam_mount.conf.xml":
     86                    require => Package["libpam-mount"],
     87                    ensure => present,
     88                    content => template("openldap/pam_mount.conf.xml.erb");
     89                }
     90        }
     91        default: {
     92           err("Your $operatingsystem is not supported yet to configure openldap-client")
     93        }
     94    }
     95}
Note: See TracChangeset for help on using the changeset viewer.