aboutsummaryrefslogtreecommitdiff
path: root/manifests/lastlog/enable.pp
blob: bd9378b5e484496ce82c4acce039d55dc2836c08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class loginrecords::lastlog::enable(
  $pam_login_file = '/etc/pam.d/login'
){
  replace{'loginrecords-lastlog':
    file => $pam_login_file,
    pattern   => '^#session[[:space:]]+optional[[:space:]]+pam_lastlog.so$',
    replacement => 'session  optional   pam_lastlog.so',
  }
  file{'/var/log/lastlog':
    ensure => present,
    owner => root, group => utmp, mode => 0664;
  }
}