aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/pam.pp
blob: dc326a1813f80b5e2e20927be4a648d078653624 (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
30
31
32
33
34
35
36
37
38
39
class pam(
  $enable = hiera('nodo::pam::enable', false)
) {
  if $enable != false {
    # Squeeze only
    if $::lsbdistcodename == 'squeeze' {
      # pam - login
      file { "/etc/pam.d/login":
        source  => [ "puppet:///modules/nodo/etc/pam.d/login.${::lsbdistcodename}",
                     "puppet:///modules/nodo/etc/pam.d/login",
                   ],
        owner   => "root",
        group   => "root",
        mode    => 0644,
        ensure  => present,
      }

      # pam - gdm
      file { "/etc/pam.d/gdm":
        source  => "puppet:///modules/nodo/etc/pam.d/gdm",
        owner   => "root",
        group   => "root",
        mode    => 0644,
        ensure  => present,
      }
    }

    # pam - mountpoints
    file { "/etc/security/pam_mount.conf.xml":
      ensure  => present,
      owner   => root,
      group   => root,
      mode    => 0644,
      source  => [ "puppet:///modules/site_nodo/security/pam_mount.conf.xml.${::lsbdistcodename}",
                   "puppet:///modules/site_nodo/security/pam_mount.conf.xml",
                 ],
    }
  }
}