aboutsummaryrefslogtreecommitdiff
path: root/manifests/faillog.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/faillog.pp')
-rw-r--r--manifests/faillog.pp26
1 files changed, 13 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'],
+ }
}