diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-09-22 10:39:11 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-09-22 10:39:11 -0300 |
commit | f55276477c27770af28e53bb8d4c8f9447993f05 (patch) | |
tree | 234360d8e90cb990d515717df9c8a87f23eeeb52 /manifests/laptop.pp | |
parent | c9d08c50fc371c6f5576adfb0229015daf0e6fbe (diff) | |
download | puppet-nodo-f55276477c27770af28e53bb8d4c8f9447993f05.tar.gz puppet-nodo-f55276477c27770af28e53bb8d4c8f9447993f05.tar.bz2 |
Adding hibernation support for laptops
Diffstat (limited to 'manifests/laptop.pp')
-rw-r--r-- | manifests/laptop.pp | 5 |
1 files changed, 4 insertions, 1 deletions
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, |