aboutsummaryrefslogtreecommitdiff
path: root/manifests/utmp.pp
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-10-17 20:23:20 +0200
committerintrigeri <intrigeri@boum.org>2010-10-17 20:23:20 +0200
commitef2e21a7644eb5eb6d31bad47076a33abb02801c (patch)
tree03e1a7d7e515d4b6da4c9d375cd13a86f32eab1e /manifests/utmp.pp
parent7fcec706fd74b5f958e74d7960640ff5ec8b19be (diff)
downloadpuppet-loginrecords-ef2e21a7644eb5eb6d31bad47076a33abb02801c.tar.gz
puppet-loginrecords-ef2e21a7644eb5eb6d31bad47076a33abb02801c.tar.bz2
Also disable /var/run/utmp (opt-out).
Diffstat (limited to 'manifests/utmp.pp')
-rw-r--r--manifests/utmp.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/manifests/utmp.pp b/manifests/utmp.pp
new file mode 100644
index 0000000..3b79374
--- /dev/null
+++ b/manifests/utmp.pp
@@ -0,0 +1,9 @@
+class loginrecords::utmp::disable {
+ file { "$utmp_file": ensure => 'absent' }
+}
+
+class loginrecords::utmp::enable {
+ file { "$utmp_file":
+ ensure => 'present', mode => 660, owner => 'root', group => 'utmp',
+ }
+}