]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Managing /etc/initramfs-tools/conf.d/resume on laptops
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 22 Sep 2011 16:17:18 +0000 (13:17 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 22 Sep 2011 16:17:18 +0000 (13:17 -0300)
manifests/laptop.pp

index 38f235d51962e497f72e88e0dd7e4a959f4d1b5c..d166a1568435f673a0145cf8bbb98c275c83601a 100644 (file)
@@ -29,6 +29,18 @@ class nodo::laptop inherits nodo::personal {
       mode    => 0644,
       ensure  => present,
     }
+
+    # hibernation
+    file { "/etc/initramfs-tools/conf.d/resume":
+      owner   => "root",
+      group   => "root",
+      mode    => 0644,
+      content => "RESUME=/dev/mapper/cswap",
+      ensure  => $hibernate ? {
+        false   => absent,
+        default => present,
+      },
+    }
   }
 
   # upgrade from lenny