diff options
-rw-r--r-- | manifests/laptop.pp | 2 | ||||
-rw-r--r-- | manifests/subsystems/utils/laptop.pp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/manifests/laptop.pp b/manifests/laptop.pp index 84d7697..e76a20a 100644 --- a/manifests/laptop.pp +++ b/manifests/laptop.pp @@ -11,6 +11,8 @@ class nodo::laptop inherits nodo::personal { type => 'laptop', } + $hibernate = hiera('nodo::laptop::hibernate', false) + class { 'crypttab': type => $hibernate ? { false => "laptop", diff --git a/manifests/subsystems/utils/laptop.pp b/manifests/subsystems/utils/laptop.pp index 72c490e..3519415 100644 --- a/manifests/subsystems/utils/laptop.pp +++ b/manifests/subsystems/utils/laptop.pp @@ -32,6 +32,7 @@ class utils::laptop::debian { # Hibernation on lenny if $lsbdistcodename == 'lenny' { + $hibernate = hiera('nodo::laptop::hibernate', false) package { 'uswsusp': ensure => $hibernate ? { false => absent, |