diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-05-18 15:07:01 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-05-18 15:07:01 -0300 |
commit | eda407ab3dff534d04a37c1c783081a39c4d0492 (patch) | |
tree | ad1f94bb6636249648e0d01219fb74fdb8e843cc | |
parent | 90d7b624142d05936c464c5c125eaf505ddc603c (diff) | |
download | puppet-nodo-eda407ab3dff534d04a37c1c783081a39c4d0492.tar.gz puppet-nodo-eda407ab3dff534d04a37c1c783081a39c4d0492.tar.bz2 |
Introducing $fstab and $crypttab
-rw-r--r-- | manifests/desktop.pp | 28 |
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, + } } } |