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.pp24
1 files changed, 13 insertions, 11 deletions
diff --git a/manifests/faillog/enable.pp b/manifests/faillog/enable.pp
index f26dc69..c714b74 100644
--- a/manifests/faillog/enable.pp
+++ b/manifests/faillog/enable.pp
@@ -1,12 +1,14 @@
-class loginrecords::faillog::enable {
- replace { 'loginrecords-faillog-enable':
- file => $login_defs_file,
- pattern => '^FAILLOG_ENAB[[:space]]+no$',
- replacement => 'FAILLOG_ENAB yes',
- }
- line { 'loginrecords-faillog-enable':
- file => $login_defs_file,
- line => 'FAILLOG_ENAB yes',
- require => Replace['loginrecords-faillog-enable'],
- }
+class loginrecords::faillog::enable(
+ $login_defs_file = '/etc/login.defs'
+) {
+ replace{'loginrecords-faillog':
+ file => $login_defs_file,
+ pattern => '^FAILLOG_ENAB[[:space]]+no$',
+ replacement => 'FAILLOG_ENAB yes',
+ }
+ line{'loginrecords-faillog':
+ file => $login_defs_file,
+ line => 'FAILLOG_ENAB yes',
+ require => Replace['loginrecords-faillog'],
+ }
}