diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-09-22 13:17:18 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-09-22 13:17:18 -0300 |
commit | c1b813a354811d039a8f9f2a164cac666b2133af (patch) | |
tree | aae4a2dead59c2a61e9d761dabc5e56979b475a9 | |
parent | f55276477c27770af28e53bb8d4c8f9447993f05 (diff) | |
download | puppet-nodo-c1b813a354811d039a8f9f2a164cac666b2133af.tar.gz puppet-nodo-c1b813a354811d039a8f9f2a164cac666b2133af.tar.bz2 |
Managing /etc/initramfs-tools/conf.d/resume on laptops
-rw-r--r-- | manifests/laptop.pp | 12 |
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 |