From f55276477c27770af28e53bb8d4c8f9447993f05 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 22 Sep 2011 10:39:11 -0300 Subject: Adding hibernation support for laptops --- manifests/laptop.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'manifests/laptop.pp') diff --git a/manifests/laptop.pp b/manifests/laptop.pp index db355c0..38f235d 100644 --- a/manifests/laptop.pp +++ b/manifests/laptop.pp @@ -20,7 +20,10 @@ class nodo::laptop inherits nodo::personal { # crypttab if $crypttab != false { file { "/etc/crypttab": - source => "puppet://$server/modules/nodo/etc/crypttab/laptop", + source => $hibernate ? { + false => "puppet://$server/modules/nodo/etc/crypttab/laptop", + default => "puppet://$server/modules/nodo/etc/crypttab/laptop.hibernate", + }, owner => "root", group => "root", mode => 0644, -- cgit v1.2.3