aboutsummaryrefslogtreecommitdiff
path: root/manifests/faillog/enable.pp
blob: ebc89222e12128f78714d127ac94ceca1bf38e20 (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',
    }
    append_if_no_such_line { 'loginrecords-faillog-enable':
        file    => $login_defs_file,
        line    => 'FAILLOG_ENAB		yes',
        require => Replace['loginrecords-faillog-enable'],
    }
}