diff options
author | mh <mh@immerda.ch> | 2013-01-02 11:43:18 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2013-01-02 11:43:18 +0100 |
commit | 43cba80d2ede774ecf91cb26531ecbca0f097551 (patch) | |
tree | 51f3dbde6868f456def5652ea4076a06263a33f1 /manifests/wtmp | |
parent | 868c2bee3b8c77a01bdd2b003c0560c3006a0f8f (diff) | |
download | puppet-loginrecords-43cba80d2ede774ecf91cb26531ecbca0f097551.tar.gz puppet-loginrecords-43cba80d2ede774ecf91cb26531ecbca0f097551.tar.bz2 |
linting according to puppet-lint
Diffstat (limited to 'manifests/wtmp')
-rw-r--r-- | manifests/wtmp/disable.pp | 3 | ||||
-rw-r--r-- | manifests/wtmp/enable.pp | 9 |
2 files changed, 8 insertions, 4 deletions
diff --git a/manifests/wtmp/disable.pp b/manifests/wtmp/disable.pp index 0d53e57..f98e201 100644 --- a/manifests/wtmp/disable.pp +++ b/manifests/wtmp/disable.pp @@ -1,5 +1,6 @@ +# ensure that wtmp is not on the system class loginrecords::wtmp::disable inherits loginrecords::wtmp::enable { - File[$wtmp_file]{ + File[$loginrecords::wtmp::enable::wtmp_file]{ ensure => 'absent', backup => false, } diff --git a/manifests/wtmp/enable.pp b/manifests/wtmp/enable.pp index f3b5ee9..4ba57ee 100644 --- a/manifests/wtmp/enable.pp +++ b/manifests/wtmp/enable.pp @@ -1,8 +1,11 @@ +# manage wtmp class loginrecords::wtmp::enable( $wtmp_file = '/var/log/wtmp' ){ - file{$wtmp_file: - ensure => 'present', - owner => 'root', group => 'utmp', mode => 664; + file{$loginrecords::wtmp::enable::wtmp_file: + ensure => 'present', + owner => 'root', + group => 'utmp', + mode => '0664'; } } |