aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-22 13:17:18 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-22 13:17:18 -0300
commitc1b813a354811d039a8f9f2a164cac666b2133af (patch)
treeaae4a2dead59c2a61e9d761dabc5e56979b475a9 /manifests
parentf55276477c27770af28e53bb8d4c8f9447993f05 (diff)
downloadpuppet-nodo-c1b813a354811d039a8f9f2a164cac666b2133af.tar.gz
puppet-nodo-c1b813a354811d039a8f9f2a164cac666b2133af.tar.bz2
Managing /etc/initramfs-tools/conf.d/resume on laptops
Diffstat (limited to 'manifests')
-rw-r--r--manifests/laptop.pp12
1 files changed, 12 insertions, 0 deletions
diff --git a/manifests/laptop.pp b/manifests/laptop.pp
index 38f235d..d166a15 100644
--- a/manifests/laptop.pp
+++ b/manifests/laptop.pp
@@ -29,6 +29,18 @@ class nodo::laptop inherits nodo::personal {
mode => 0644,
ensure => present,
}
+
+ # hibernation
+ file { "/etc/initramfs-tools/conf.d/resume":
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ content => "RESUME=/dev/mapper/cswap",
+ ensure => $hibernate ? {
+ false => absent,
+ default => present,
+ },
+ }
}
# upgrade from lenny