aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-29 21:17:41 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-29 21:17:41 -0200
commitc48a89e5df6c1be8de602b6f3c67fc7f906e2f7c (patch)
tree7a0ad0d8f205d54d0dc4b5774b14f69c2b940a72 /manifests
parentd2b96c85061fcc2bbf17844b2e241087d6e9f8d4 (diff)
downloadpuppet-nodo-c48a89e5df6c1be8de602b6f3c67fc7f906e2f7c.tar.gz
puppet-nodo-c48a89e5df6c1be8de602b6f3c67fc7f906e2f7c.tar.bz2
Using nodo::laptop::hibernate for hibernate configuration
Diffstat (limited to 'manifests')
-rw-r--r--manifests/laptop.pp2
-rw-r--r--manifests/subsystems/utils/laptop.pp1
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,