aboutsummaryrefslogtreecommitdiffstats
path: root/modules/pam/manifests/init.pp
blob: 07f2214a10fbecebb1f6970b45837daf95da74cd (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
28
29
class pam {

  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")
      }
  } 
  
  # for server where only admin can connect
  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 inherits base {
    $access_class = "commiters"
    file { "system-auth": }
  }
}