aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/pam/manifests/init.pp28
1 files changed, 15 insertions, 13 deletions
diff --git a/modules/pam/manifests/init.pp b/modules/pam/manifests/init.pp
index 4c68a80c..07f2214a 100644
--- a/modules/pam/manifests/init.pp
+++ b/modules/pam/manifests/init.pp
@@ -1,26 +1,28 @@
class pam {
- package { ["pam_ldap","nss_ldap", "pam_mkhomedir"]:
- ensure => installed,
- }
-
+ class base {
+ 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")
- }
+ 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 {
+ class admin_access inherits base {
$access_class = "admin"
+ # not sure if this line is needed anymore, wil check later
file { "system-auth": }
}
# for server where people can connect with ssh ( git, svn )
- class commiters_access {
+ class commiters_access inherits base {
$access_class = "commiters"
file { "system-auth": }
}