diff options
author | intrigeri <intrigeri@boum.org> | 2010-10-17 19:29:25 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-10-17 19:29:25 +0200 |
commit | 93b4600f5022698787795d4e1d06cc51db73103c (patch) | |
tree | 043b27bf71baf1caa751ef3a99c7d52d0e78ec8d | |
parent | 98127806e639643cb6b8f3fcf8243a14bba248ce (diff) | |
download | puppet-loginrecords-93b4600f5022698787795d4e1d06cc51db73103c.tar.gz puppet-loginrecords-93b4600f5022698787795d4e1d06cc51db73103c.tar.bz2 |
bugfixes
-rw-r--r-- | manifests/faillog.pp | 26 | ||||
-rw-r--r-- | manifests/init.pp | 2 |
2 files changed, 15 insertions, 13 deletions
diff --git a/manifests/faillog.pp b/manifests/faillog.pp index 2af2299..2ec54c4 100644 --- a/manifests/faillog.pp +++ b/manifests/faillog.pp @@ -1,8 +1,8 @@ class loginrecords::faillog::enable { replace { 'loginrecords-faillog-enable': - file => $login_defs_file, - pattern => '^FAILLOG_ENAB\w+no$', - replace => 'FAILLOG_ENAB yes', + 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, @@ -12,14 +12,14 @@ class 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'], - } + replace { 'loginrecords-faillog-disable': + file => $login_defs_file, + pattern => '^FAILLOG_ENAB[[:space:]]+yes$', + replacement => 'FAILLOG_ENAB no', + } + append_if_no_such_line { 'loginrecords-faillog-disable': + file => $login_defs_file, + line => 'FAILLOG_ENAB no', + require => Replace['loginrecords-faillog-disable'], + } } diff --git a/manifests/init.pp b/manifests/init.pp index 2eddcb3..69b6d1b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,3 +1,5 @@ +import "*.pp" + class loginrecords { # Default settings |