aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/base/laptop.pp12
-rw-r--r--manifests/utils/laptop/debian.pp2
2 files changed, 13 insertions, 1 deletions
diff --git a/manifests/base/laptop.pp b/manifests/base/laptop.pp
index 4e07e80..3074787 100644
--- a/manifests/base/laptop.pp
+++ b/manifests/base/laptop.pp
@@ -31,6 +31,18 @@ class nodo::base::laptop inherits nodo::base::personal {
},
}
+ file { "/etc/uswsusp.conf":
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ source => 'puppet:///modules/nodo/etc/uswsusp.conf',
+ 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':
diff --git a/manifests/utils/laptop/debian.pp b/manifests/utils/laptop/debian.pp
index a4ef0e0..d584e1a 100644
--- a/manifests/utils/laptop/debian.pp
+++ b/manifests/utils/laptop/debian.pp
@@ -7,7 +7,7 @@ class nodo::utils::laptop::debian {
'btscanner', 'laptop-mode-tools', 'acpi-support',
'tftp', 'sharutils', 'wireshark',
'macchanger', 'weplab', 'wpagui',
- 'gnokii', 'sslstrip' ]:
+ 'gnokii', 'sslstrip', 'uswsusp' ]:
ensure => installed,
}