From: Silvio Rhatto Date: Tue, 29 Jan 2013 23:17:41 +0000 (-0200) Subject: Using nodo::laptop::hibernate for hibernate configuration X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=c48a89e5df6c1be8de602b6f3c67fc7f906e2f7c;p=puppet-nodo.git Using nodo::laptop::hibernate for hibernate configuration --- 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,