diff options
Diffstat (limited to 'manifests')
-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 |