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