aboutsummaryrefslogtreecommitdiff
path: root/manifests/faillog/enable.pp
blob: c714b74e8139e78ef136eb35d206f27c374971c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class loginrecords::faillog::enable(
  $login_defs_file = '/etc/login.defs'
) {
  replace{'loginrecords-faillog':
    file    => $login_defs_file,
    pattern   => '^FAILLOG_ENAB[[:space]]+no$',
    replacement => 'FAILLOG_ENAB		yes',
  }
  line{'loginrecords-faillog':
    file  => $login_defs_file,
    line  => 'FAILLOG_ENAB		yes',
    require => Replace['loginrecords-faillog'],
  }
}