/[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 390 - (show annotations) (download)
Mon Nov 22 13:15:23 2010 UTC (13 years, 4 months ago) by misc
File size: 1180 byte(s)
- make sure nscd is installed and running
1 class pam {
2
3 class base {
4 package { ["pam_ldap","nss_ldap","nscd"]:
5 ensure => installed,
6 }
7
8 service { nscd:
9 ensure => running,
10 path => '/etc/init.d/nscd',
11 }
12
13 file { "system-auth":
14 path => "/etc/pam.d/system-auth",
15 owner => root,
16 group => root,
17 mode => 644,
18 content => template("pam/system-auth")
19 }
20
21 file { "nsswitch.conf":
22 path => "/etc/nsswitch.conf",
23 owner => root,
24 group => root,
25 mode => 644,
26 content => template("pam/nsswitch.conf")
27 }
28
29 $nssldap_password = extlookup("nssldap_password",'x')
30
31 file { "ldap.conf":
32 path => "/etc/ldap.conf",
33 owner => root,
34 group => root,
35 mode => 644,
36 content => template("pam/ldap.conf")
37 }
38 }
39
40 # for server where only admin can connect
41 class admin_access inherits base {
42 $access_class = "admin"
43 # not sure if this line is needed anymore, wil check later
44 }
45
46 # for server where people can connect with ssh ( git, svn )
47 class commiters_access inherits base {
48 $access_class = "commiters"
49 }
50 }

  ViewVC Help
Powered by ViewVC 1.1.30