]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Using nodo::laptop::hibernate for hibernate configuration
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 29 Jan 2013 23:17:41 +0000 (21:17 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 29 Jan 2013 23:17:41 +0000 (21:17 -0200)
manifests/laptop.pp
manifests/subsystems/utils/laptop.pp

index 84d76976f6163fa5fe729158619c589e007a3c44..e76a20a1ce9eb3e4d3bd3858a8ba920b1ba56d9f 100644 (file)
@@ -11,6 +11,8 @@ class nodo::laptop inherits nodo::personal {
     type => 'laptop',
   }
 
+  $hibernate = hiera('nodo::laptop::hibernate', false)
+
   class { 'crypttab':
     type => $hibernate ? {
       false   => "laptop",
index 72c490e4b32da35fd15e069809d65e6f8d235eb2..3519415bdaa9bc3bf448e8f4188733323db91eef 100644 (file)
@@ -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,