aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-08-09 11:26:20 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-08-09 11:26:20 -0300
commit314ce8d74d8b0e119550f0b0783eeb2f80355849 (patch)
tree21475f369a4141cc94ed50217fd0cb373c6fd620 /manifests
parent278d381fd0a903bd7c754d296d63491959fdcbdf (diff)
downloadpuppet-nodo-314ce8d74d8b0e119550f0b0783eeb2f80355849.tar.gz
puppet-nodo-314ce8d74d8b0e119550f0b0783eeb2f80355849.tar.bz2
Default pm-utils sleep module
Diffstat (limited to 'manifests')
-rw-r--r--manifests/base/laptop.pp12
1 files changed, 12 insertions, 0 deletions
diff --git a/manifests/base/laptop.pp b/manifests/base/laptop.pp
index c8778a0..5fec946 100644
--- a/manifests/base/laptop.pp
+++ b/manifests/base/laptop.pp
@@ -43,6 +43,18 @@ class nodo::base::laptop inherits nodo::base::personal {
},
}
+ file { "/etc/pm/config.d/00sleep_module":
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ content => "SLEEP_MODULE=\"uswsusp\"\n",
+ require => Package['uswsusp'],
+ ensure => $hibernate ? {
+ false => absent,
+ default => present,
+ },
+ }
+
# Avoid this annoying warning
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673818
file { '/etc/laptop-mode/conf.d/board-specific':