aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2011-11-09 19:35:05 +0100
committerintrigeri <intrigeri@boum.org>2011-11-09 19:46:44 +0100
commitfdb60047acf69dac300a156958a7e115f185f322 (patch)
tree18542bd8734223081852e60803362c5abcabeee0
parentb8446fb41516f5cc61e8d230802191e891031996 (diff)
downloadpuppet-loginrecords-fdb60047acf69dac300a156958a7e115f185f322.tar.gz
puppet-loginrecords-fdb60047acf69dac300a156958a7e115f185f322.tar.bz2
Take into account that disabling RAMRUN is not supported since Wheezy.
-rw-r--r--README4
-rw-r--r--manifests/debian.pp5
2 files changed, 8 insertions, 1 deletions
diff --git a/README b/README
index 68cf39b..8395501 100644
--- a/README
+++ b/README
@@ -12,6 +12,7 @@ Dependencies
============
- the common module: git://labs.riseup.net/shared-common
+- the lsb module: git://labs.riseup.net/shared-lsb
Configuration
=============
@@ -54,6 +55,9 @@ Default: have the initscripts mount a ramdisk on /var/run.
When set to a false, non-empty value, the mounting of a ramdisk on
/var/run is disabled.
+This has no effect on Debian Wheezy or later: a ramdisk is always
+mounted on /run, regardless of this setting.
+
Please note that the changes only take effect on reboot. When enabling
this feature, you probably want to get rid of any file previously
stored on the files (such as utmp) stored in the non-ramdisk
diff --git a/manifests/debian.pp b/manifests/debian.pp
index e68185b..c20be6c 100644
--- a/manifests/debian.pp
+++ b/manifests/debian.pp
@@ -33,7 +33,10 @@ class loginrecords::debian inherits loginrecords::base {
if $loginrecords::ramdisk_on_var_run {
class{'loginrecords::ramrun::enable': }
} else {
- class{'loginrecords::ramrun::disable': }
+ case $lsbdistrelease {
+ 'lenny','squeeze': { class{'loginrecords::ramrun::disable': } }
+ default: { err("Disabling RAMRUN is not supported since Wheezy") }
+ }
}
}