aboutsummaryrefslogtreecommitdiff
path: root/manifests/faillog/enable.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/faillog/enable.pp')
-rw-r--r--manifests/faillog/enable.pp13
1 files changed, 4 insertions, 9 deletions
diff --git a/manifests/faillog/enable.pp b/manifests/faillog/enable.pp
index d600f6f..6120193 100644
--- a/manifests/faillog/enable.pp
+++ b/manifests/faillog/enable.pp
@@ -2,14 +2,9 @@
class loginrecords::faillog::enable(
$login_defs_file = '/etc/login.defs'
) {
- replace{'loginrecords-faillog':
- file => $loginrecords::faillog::enable::login_defs_file,
- pattern => '^FAILLOG_ENAB[[:space]]+no$',
- replacement => "FAILLOG_ENAB\tyes",
- }
- line{'loginrecords-faillog':
- file => $loginrecords::faillog::enable::login_defs_file,
- line => "FAILLOG_ENAB\tyes",
- require => Replace['loginrecords-faillog'],
+ file_line{'loginrecords-faillog':
+ path => $loginrecords::faillog::enable::login_defs_file,
+ match => '^FAILLOG_ENAB',
+ line => "FAILLOG_ENAB\tyes",
}
}