aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: fd2f86ba5238a89ff75afac270f31d9fe1bf6c6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# manage how login records are
# stored on the system
class loginrecords(
  $disable_btmp       = true,
  $disable_faillog    = true,
  $disable_lastlog    = true,
  $protect_utmp       = true,
  $disable_wtmp       = true,
  $ramdisk_on_var_run = true
){
  # Include main class
  case $::kernel {
    Linux: {
      case $::operatingsystem {
        debian, ubuntu: { include loginrecords::debian }
        default:        { include loginrecords::base }
      }
    }
    default: {
      fail("Kernel ${::kernel} is not supported.")
    }
  }
}