blob: 4c68a80c1f6c2d77a2bac1dd46209fb3807d9d4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
class pam {
package { ["pam_ldap","nss_ldap", "pam_mkhomedir"]:
ensure => installed,
}
file { "system-auth":
path => "/etc/pam.d/system-auth",
owner => root,
group => root,
mode => 644,
content => template("openldap/system-auth")
}
# for server where only admin can connect
class admin_access {
$access_class = "admin"
file { "system-auth": }
}
# for server where people can connect with ssh ( git, svn )
class commiters_access {
$access_class = "commiters"
file { "system-auth": }
}
}
|