aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/laptop.pp28
1 files changed, 16 insertions, 12 deletions
diff --git a/manifests/laptop.pp b/manifests/laptop.pp
index c2b1364..06b10c1 100644
--- a/manifests/laptop.pp
+++ b/manifests/laptop.pp
@@ -5,20 +5,24 @@ class nodo::laptop inherits nodo::personal {
include firewall::wifi
# fstab
- file { "/etc/fstab":
- source => "puppet://$server/modules/nodo/etc/fstab/laptop",
- owner => "root",
- group => "root",
- mode => 0644,
- ensure => present,
+ if $fstab != false {
+ file { "/etc/fstab":
+ source => "puppet://$server/modules/nodo/etc/fstab/laptop",
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ }
}
# crypttab
- file { "/etc/crypttab":
- source => "puppet://$server/modules/nodo/etc/crypttab/laptop",
- owner => "root",
- group => "root",
- mode => 0644,
- ensure => present,
+ if $crypttab != false {
+ file { "/etc/crypttab":
+ source => "puppet://$server/modules/nodo/etc/crypttab/laptop",
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ }
}
}