diff options
author | intrigeri <intrigeri@boum.org> | 2010-10-17 18:37:58 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-10-17 18:37:58 +0200 |
commit | 619ca3f02fdbed3b39217a770d66dca0d7a3bb43 (patch) | |
tree | de44089f41f2ecb4792884744fecebe7ea5e530b /manifests/faillog.pp | |
download | puppet-loginrecords-619ca3f02fdbed3b39217a770d66dca0d7a3bb43.tar.gz puppet-loginrecords-619ca3f02fdbed3b39217a770d66dca0d7a3bb43.tar.bz2 |
Initial commit, with untested faillog support.
Diffstat (limited to 'manifests/faillog.pp')
-rw-r--r-- | manifests/faillog.pp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/manifests/faillog.pp b/manifests/faillog.pp new file mode 100644 index 0000000..2af2299 --- /dev/null +++ b/manifests/faillog.pp @@ -0,0 +1,25 @@ +class loginrecords::faillog::enable { + replace { 'loginrecords-faillog-enable': + file => $login_defs_file, + pattern => '^FAILLOG_ENAB\w+no$', + replace => 'FAILLOG_ENAB yes', + } + append_if_no_such_line { 'loginrecords-faillog-enable': + file => $login_defs_file, + line => 'FAILLOG_ENAB yes', + require => Replace['loginrecords-faillog-enable'], + } +} + +class loginrecords::faillog::disable { + replace { 'loginrecords-faillog-disable': + file => $login_defs_file, + pattern => '^FAILLOG_ENAB\w+yes$', + replace => 'FAILLOG_ENAB no', + } + append_if_no_such_line { 'loginrecords-faillog-disable': + file => $login_defs_file, + line => 'FAILLOG_ENAB no', + require => Replace['loginrecords-faillog-disable'], + } +} |