aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-22 10:39:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-22 10:39:11 -0300
commitf55276477c27770af28e53bb8d4c8f9447993f05 (patch)
tree234360d8e90cb990d515717df9c8a87f23eeeb52 /manifests/subsystems
parentc9d08c50fc371c6f5576adfb0229015daf0e6fbe (diff)
downloadpuppet-nodo-f55276477c27770af28e53bb8d4c8f9447993f05.tar.gz
puppet-nodo-f55276477c27770af28e53bb8d4c8f9447993f05.tar.bz2
Adding hibernation support for laptops
Diffstat (limited to 'manifests/subsystems')
-rw-r--r--manifests/subsystems/utils/laptop.pp11
1 files changed, 8 insertions, 3 deletions
diff --git a/manifests/subsystems/utils/laptop.pp b/manifests/subsystems/utils/laptop.pp
index e1022a5..5ae29d6 100644
--- a/manifests/subsystems/utils/laptop.pp
+++ b/manifests/subsystems/utils/laptop.pp
@@ -16,8 +16,13 @@ class utils::laptop {
}
}
- # Currently no hibernation
- package { 'uswsusp':
- ensure => absent,
+ # Hibernation on lenny
+ if $lsbdistcodename == 'lenny' {
+ package { 'uswsusp':
+ ensure => $hibernate ? {
+ false => absent,
+ default => present,
+ },
+ }
}
}