aboutsummaryrefslogtreecommitdiff
path: root/manifests/wtmp
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2013-01-02 12:47:34 +0100
committerintrigeri <intrigeri@boum.org>2013-01-02 12:47:34 +0100
commit4cfb1fc6bbe356e335d8635bbadfd6ea72f8bc20 (patch)
tree9ee65026036cde571b27aaa7e57b9a421701907e /manifests/wtmp
parentfdb60047acf69dac300a156958a7e115f185f322 (diff)
parentb94947ba7f99a69837c65c9217e692d74052b651 (diff)
downloadpuppet-loginrecords-4cfb1fc6bbe356e335d8635bbadfd6ea72f8bc20.tar.gz
puppet-loginrecords-4cfb1fc6bbe356e335d8635bbadfd6ea72f8bc20.tar.bz2
Merge branch 'shared'
Conflicts: README
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';
}
}