diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/laptop.pp | 5 | ||||
-rw-r--r-- | manifests/subsystems/utils/laptop.pp | 11 |
2 files changed, 12 insertions, 4 deletions
diff --git a/manifests/laptop.pp b/manifests/laptop.pp index db355c0..38f235d 100644 --- a/manifests/laptop.pp +++ b/manifests/laptop.pp @@ -20,7 +20,10 @@ class nodo::laptop inherits nodo::personal { # crypttab if $crypttab != false { file { "/etc/crypttab": - source => "puppet://$server/modules/nodo/etc/crypttab/laptop", + source => $hibernate ? { + false => "puppet://$server/modules/nodo/etc/crypttab/laptop", + default => "puppet://$server/modules/nodo/etc/crypttab/laptop.hibernate", + }, owner => "root", group => "root", mode => 0644, 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, + }, + } } } |