aboutsummaryrefslogtreecommitdiff
path: root/manifests/desktop.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-05-18 15:07:01 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-05-18 15:07:01 -0300
commiteda407ab3dff534d04a37c1c783081a39c4d0492 (patch)
treead1f94bb6636249648e0d01219fb74fdb8e843cc /manifests/desktop.pp
parent90d7b624142d05936c464c5c125eaf505ddc603c (diff)
downloadpuppet-nodo-eda407ab3dff534d04a37c1c783081a39c4d0492.tar.gz
puppet-nodo-eda407ab3dff534d04a37c1c783081a39c4d0492.tar.bz2
Introducing $fstab and $crypttab
Diffstat (limited to 'manifests/desktop.pp')
-rw-r--r--manifests/desktop.pp28
1 files changed, 16 insertions, 12 deletions
diff --git a/manifests/desktop.pp b/manifests/desktop.pp
index 25fc874..ddf740f 100644
--- a/manifests/desktop.pp
+++ b/manifests/desktop.pp
@@ -2,20 +2,24 @@ class nodo::desktop inherits nodo::personal {
include utils::desktop
# fstab
- file { "/etc/fstab":
- source => "puppet://$server/modules/nodo/etc/fstab/desktop",
- owner => "root",
- group => "root",
- mode => 0644,
- ensure => present,
+ if $fstab != false {
+ file { "/etc/fstab":
+ source => "puppet://$server/modules/nodo/etc/fstab/desktop",
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ }
}
# crypttab
- file { "/etc/crypttab":
- source => "puppet://$server/modules/nodo/etc/crypttab/desktop",
- owner => "root",
- group => "root",
- mode => 0644,
- ensure => present,
+ if $crypttab != false {
+ file { "/etc/crypttab":
+ source => "puppet://$server/modules/nodo/etc/crypttab/desktop",
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ }
}
}