aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-11-30 00:58:07 +0100
committermh <mh@immerda.ch>2010-11-30 00:58:07 +0100
commit2fc748a19d8080970d5989b57d2e20e37f3d65ce (patch)
treeeb5f75a56a49ccf9694002d1327df9e86afa4300 /manifests/init.pp
parent8d86772a9a2d103639229b14c2418618df951210 (diff)
downloadpuppet-loginrecords-2fc748a19d8080970d5989b57d2e20e37f3d65ce.tar.gz
puppet-loginrecords-2fc748a19d8080970d5989b57d2e20e37f3d65ce.tar.bz2
introduce class parameters to make the interface nicer
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp26
1 files changed, 7 insertions, 19 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 3bcf274..9c0a880 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,22 +1,10 @@
-class loginrecords {
-
- # Default settings
- if $disable_btmp == '' {
- $disable_btmp = true
- }
- if $disable_faillog == '' {
- $disable_faillog = true
- }
- if $disable_lastlog == '' {
- $disable_lastlog = true
- }
- if $disable_utmp == '' {
- $disable_utmp = true
- }
- if $disable_wtmp == '' {
- $disable_wtmp = true
- }
-
+class loginrecords(
+ $disable_btmp = true,
+ $disable_faillog = true,
+ $disable_lastlog = true,
+ $disable_utmp = true,
+ $disable_wtmp = true
+){
# Include main class
case $kernel {
"Linux": {