aboutsummaryrefslogtreecommitdiff
path: root/manifests/wtmp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-18 12:03:04 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-18 12:03:04 -0200
commit533b8fbd9dfca345151f146f348496fc2a5fa530 (patch)
treef3486c01a440f628d546beda5b4e4448edaaf1b1 /manifests/wtmp
parentb0c0b29cf37451cfe7090e2f53197798c5dbba4b (diff)
parented222aced2762800363f4428a26a58e960e22983 (diff)
downloadpuppet-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.pp3
-rw-r--r--manifests/wtmp/enable.pp9
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';
}
}