aboutsummaryrefslogtreecommitdiff
path: root/manifests/wtmp
diff options
context:
space:
mode:
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';
}
}