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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 267 - (hide annotations) (download)
Wed Nov 17 15:50:32 2010 UTC (13 years, 4 months ago) by misc
File size: 901 byte(s)
- fix templates
- add nsswitch.conf

1 misc 265 class pam {
2    
3 misc 266 class base {
4     package { ["pam_ldap","nss_ldap", "pam_mkhomedir"]:
5     ensure => installed,
6     }
7 misc 265
8 misc 266 file { "system-auth":
9     path => "/etc/pam.d/system-auth",
10     owner => root,
11     group => root,
12     mode => 644,
13 misc 267 content => template("pam/system-auth")
14 misc 266 }
15 misc 267
16     file { "nsswitch.conf":
17     path => "/etc/nsswitch.conf",
18     owner => root,
19     group => root,
20     mode => 644,
21     content => template("pam/system-auth")
22     }
23 misc 266 }
24 misc 265
25     # for server where only admin can connect
26 misc 266 class admin_access inherits base {
27 misc 265 $access_class = "admin"
28 misc 266 # not sure if this line is needed anymore, wil check later
29 misc 265 file { "system-auth": }
30     }
31    
32     # for server where people can connect with ssh ( git, svn )
33 misc 266 class commiters_access inherits base {
34 misc 265 $access_class = "commiters"
35     file { "system-auth": }
36     }
37     }

  ViewVC Help
Powered by ViewVC 1.1.30