diff options
-rw-r--r-- | README | 6 | ||||
-rw-r--r-- | manifests/debian.pp | 6 | ||||
-rw-r--r-- | manifests/init.pp | 5 |
3 files changed, 9 insertions, 8 deletions
@@ -16,11 +16,11 @@ Dependencies Configuration ============= -$enable_faillog ---------------- +$disable_faillog +---------------- Default: faillog is disabled. -When set to a true value, faillog is enabled. +When set to false, faillog is enabled. Copyright ========= diff --git a/manifests/debian.pp b/manifests/debian.pp index 236cbe2..8bc296d 100644 --- a/manifests/debian.pp +++ b/manifests/debian.pp @@ -2,11 +2,11 @@ class loginrecords::debian inherits loginrecords::base { $login_defs_file = '/etc/login.defs' - if $enable_faillog { - include loginrecords::faillog::enable + if $disable_faillog { + include loginrecords::faillog::disable } else { - include loginrecords::faillog::disable + include loginrecords::faillog::enable } } diff --git a/manifests/init.pp b/manifests/init.pp index 69b6d1b..0dbe627 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -3,10 +3,11 @@ import "*.pp" class loginrecords { # Default settings - if $enable_faillog == '' { - $enable_faillog = false + if $disable_faillog == '' { + $disable_faillog = true } + # Include main class case $kernel { "Linux": { case $operatingsystem { |