aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-05-20 21:08:51 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-05-20 21:08:51 -0300
commit729b04b9168f3256253835d8d2f5852615093e2c (patch)
tree5f35cf588230139dd3c38f6873500eb8576cbc8b
parentfe253859563d9479e4281826b97842be15ff9993 (diff)
downloadpuppet-nodo-729b04b9168f3256253835d8d2f5852615093e2c.tar.gz
puppet-nodo-729b04b9168f3256253835d8d2f5852615093e2c.tar.bz2
Adding $fstab and $crypttab at nodo::laptop
-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,
+ }
}
}