aboutsummaryrefslogtreecommitdiff
path: root/manifests/faillog/disable.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-11-30 00:38:41 +0100
committermh <mh@immerda.ch>2010-11-30 00:38:41 +0100
commitc414928502329b58045b4bfbf234b748a73ba84d (patch)
tree0be9d9ab61026eaa21de3fd168b39c66f9ba26cf /manifests/faillog/disable.pp
parentbf9eb8ef613cc65c26eda754c8212b507fb8d9d6 (diff)
downloadpuppet-loginrecords-c414928502329b58045b4bfbf234b748a73ba84d.tar.gz
puppet-loginrecords-c414928502329b58045b4bfbf234b748a73ba84d.tar.bz2
get rid off import statement
import statements are rather bad and with placing the code in the proper files we can get rid off the statement at all.
Diffstat (limited to 'manifests/faillog/disable.pp')
-rw-r--r--manifests/faillog/disable.pp12
1 files changed, 12 insertions, 0 deletions
diff --git a/manifests/faillog/disable.pp b/manifests/faillog/disable.pp
new file mode 100644
index 0000000..2e40ecf
--- /dev/null
+++ b/manifests/faillog/disable.pp
@@ -0,0 +1,12 @@
+class 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'],
+ }
+}