/[adm]/puppet/modules/pam/manifests/init.pp
ViewVC logotype

Contents of /puppet/modules/pam/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2412 - (show annotations) (download)
Wed Feb 15 09:54:34 2012 UTC (12 years, 2 months ago) by misc
File size: 800 byte(s)
clean nscd service
1 class pam {
2 class base {
3 package { ["pam_ldap","nss_ldap","nscd"]: }
4
5 service { nscd:
6 require => Package['nscd'],
7 }
8
9 file {
10 "/etc/pam.d/system-auth": content => template("pam/system-auth");
11 "/etc/nsswitch.conf": content => template("pam/nsswitch.conf");
12 "/etc/ldap.conf": content => template("pam/ldap.conf");
13 }
14
15 $ldap_password = extlookup("${fqdn}_ldap_password",'x')
16 file { "ldap.secret":
17 path => "/etc/ldap.secret",
18 mode => 600,
19 content => $ldap_password
20 }
21 }
22
23 define multiple_ldap_access($access_classes,$restricted_shell = false) {
24 if $restricted_shell {
25 include restrictshell
26 }
27 include base
28 }
29 }

  ViewVC Help
Powered by ViewVC 1.1.30