diff options
author | mh <mh@immerda.ch> | 2010-12-09 18:20:38 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-12-09 18:24:50 +0100 |
commit | 87ac7825be98a2c9b2dc3d3dcf9e277ec2a364e9 (patch) | |
tree | 60a544ed7fc652282e150d293c80ca09976b1b74 /manifests/wtmp | |
parent | c565f2877738b279d51ffb64e034e088785dca77 (diff) | |
download | puppet-loginrecords-87ac7825be98a2c9b2dc3d3dcf9e277ec2a364e9.tar.gz puppet-loginrecords-87ac7825be98a2c9b2dc3d3dcf9e277ec2a364e9.tar.bz2 |
finish refactoring
refactor everything towards class parameters and also add enable
class for lastlog
Diffstat (limited to 'manifests/wtmp')
-rw-r--r-- | manifests/wtmp/disable.pp | 6 | ||||
-rw-r--r-- | manifests/wtmp/enable.pp | 11 |
2 files changed, 11 insertions, 6 deletions
diff --git a/manifests/wtmp/disable.pp b/manifests/wtmp/disable.pp index c7c2b6d..c974cd9 100644 --- a/manifests/wtmp/disable.pp +++ b/manifests/wtmp/disable.pp @@ -1,3 +1,5 @@ -class loginrecords::wtmp::disable { - file { "$wtmp_file": ensure => 'absent' } +class loginrecords::wtmp::disable inherits loginrecords::wtmp::enable { + File[$wtmp_filer]{ + ensure => 'absent' + } } diff --git a/manifests/wtmp/enable.pp b/manifests/wtmp/enable.pp index 4982839..f3b5ee9 100644 --- a/manifests/wtmp/enable.pp +++ b/manifests/wtmp/enable.pp @@ -1,5 +1,8 @@ -class loginrecords::wtmp::enable { - file { "$wtmp_file": - ensure => 'present', mode => 664, owner => 'root', group => 'utmp', - } +class loginrecords::wtmp::enable( + $wtmp_file = '/var/log/wtmp' +){ + file{$wtmp_file: + ensure => 'present', + owner => 'root', group => 'utmp', mode => 664; + } } |