aboutsummaryrefslogtreecommitdiff
path: root/manifests/laptop.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/laptop.pp')
-rw-r--r--manifests/laptop.pp33
1 files changed, 18 insertions, 15 deletions
diff --git a/manifests/laptop.pp b/manifests/laptop.pp
index d166a15..ba5235d 100644
--- a/manifests/laptop.pp
+++ b/manifests/laptop.pp
@@ -9,34 +9,37 @@ class nodo::laptop inherits nodo::personal {
# fstab
if $fstab != false {
file { "/etc/fstab":
- source => "puppet://$server/modules/nodo/etc/fstab/laptop",
- owner => "root",
- group => "root",
- mode => 0644,
- ensure => present,
+ source => "puppet://$server/modules/nodo/etc/fstab/laptop",
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ subscribe => Exec['update-initramfs],
}
}
# crypttab
if $crypttab != false {
file { "/etc/crypttab":
- source => $hibernate ? {
+ 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,
- ensure => present,
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ subscribe => Exec['update-initramfs],
}
# hibernation
file { "/etc/initramfs-tools/conf.d/resume":
- owner => "root",
- group => "root",
- mode => 0644,
- content => "RESUME=/dev/mapper/cswap",
- ensure => $hibernate ? {
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ content => "RESUME=/dev/mapper/cswap",
+ subscribe => Exec['update-initramfs],
+ ensure => $hibernate ? {
false => absent,
default => present,
},