diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-29 21:17:41 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-29 21:17:41 -0200 |
commit | c48a89e5df6c1be8de602b6f3c67fc7f906e2f7c (patch) | |
tree | 7a0ad0d8f205d54d0dc4b5774b14f69c2b940a72 | |
parent | d2b96c85061fcc2bbf17844b2e241087d6e9f8d4 (diff) | |
download | puppet-nodo-c48a89e5df6c1be8de602b6f3c67fc7f906e2f7c.tar.gz puppet-nodo-c48a89e5df6c1be8de602b6f3c67fc7f906e2f7c.tar.bz2 |
Using nodo::laptop::hibernate for hibernate configuration
-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, |