diff options
Diffstat (limited to 'manifests/subsystems')
-rw-r--r-- | manifests/subsystems/utils/laptop.pp | 11 |
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, + }, + } } } |