From c48a89e5df6c1be8de602b6f3c67fc7f906e2f7c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 29 Jan 2013 21:17:41 -0200 Subject: Using nodo::laptop::hibernate for hibernate configuration --- manifests/laptop.pp | 2 ++ manifests/subsystems/utils/laptop.pp | 1 + 2 files changed, 3 insertions(+) (limited to 'manifests') 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, -- cgit v1.2.3