diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-18 12:03:04 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-18 12:03:04 -0200 |
commit | 533b8fbd9dfca345151f146f348496fc2a5fa530 (patch) | |
tree | f3486c01a440f628d546beda5b4e4448edaaf1b1 /manifests/wtmp | |
parent | b0c0b29cf37451cfe7090e2f53197798c5dbba4b (diff) | |
parent | ed222aced2762800363f4428a26a58e960e22983 (diff) | |
download | puppet-loginrecords-533b8fbd9dfca345151f146f348496fc2a5fa530.tar.gz puppet-loginrecords-533b8fbd9dfca345151f146f348496fc2a5fa530.tar.bz2 |
Merge branch 'master' of ssh://labs.riseup.net/shared-loginrecords
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'; } } |