aboutsummaryrefslogtreecommitdiff
path: root/manifests/ramrun
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2011-02-26 00:19:22 +0100
committerintrigeri <intrigeri@boum.org>2011-02-26 00:22:43 +0100
commitf14a6d81d58e3e36fb7fef593086aab6e576dfa1 (patch)
tree3ad080db0c10a513b72dee68622d8455bebd5bad /manifests/ramrun
parent1138f154f9cb0985076159dec34546eb9f677017 (diff)
downloadpuppet-loginrecords-f14a6d81d58e3e36fb7fef593086aab6e576dfa1.tar.gz
puppet-loginrecords-f14a6d81d58e3e36fb7fef593086aab6e576dfa1.tar.bz2
New feature: mount a ramdisk on /var/run.
This helps protecting users privacy since /var/run/utmp cannot be deleted.
Diffstat (limited to 'manifests/ramrun')
-rw-r--r--manifests/ramrun/disable.pp7
-rw-r--r--manifests/ramrun/enable.pp8
2 files changed, 15 insertions, 0 deletions
diff --git a/manifests/ramrun/disable.pp b/manifests/ramrun/disable.pp
new file mode 100644
index 0000000..304d234
--- /dev/null
+++ b/manifests/ramrun/disable.pp
@@ -0,0 +1,7 @@
+class loginrecords::ramrun::disable inherits loginrecords::ramrun::enable {
+
+ Augeas { "ramdisk-on-var-run":
+ changes => "set RAMRUN yes",
+ }
+
+}
diff --git a/manifests/ramrun/enable.pp b/manifests/ramrun/enable.pp
new file mode 100644
index 0000000..564ef06
--- /dev/null
+++ b/manifests/ramrun/enable.pp
@@ -0,0 +1,8 @@
+class loginrecords::ramrun::enable {
+
+ augeas { "ramdisk-on-var-run":
+ context => "/files/etc/default/rcS",
+ changes => "set RAMRUN yes",
+ }
+
+}