aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/fstab.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-24 15:49:41 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-24 15:49:41 -0200
commit1c2fb29bea38ccf12adf4fe8fd93fef44245eda0 (patch)
tree4e867f5159b63f432cbff220d4ff004304cbea69 /manifests/subsystems/fstab.pp
parent51622c10f922671cb8bcb1cda874f64ea932a462 (diff)
downloadpuppet-nodo-1c2fb29bea38ccf12adf4fe8fd93fef44245eda0.tar.gz
puppet-nodo-1c2fb29bea38ccf12adf4fe8fd93fef44245eda0.tar.bz2
Making fstab and crypttab management optional
Diffstat (limited to 'manifests/subsystems/fstab.pp')
-rw-r--r--manifests/subsystems/fstab.pp19
1 files changed, 11 insertions, 8 deletions
diff --git a/manifests/subsystems/fstab.pp b/manifests/subsystems/fstab.pp
index 40c8c30..c6f2ecd 100644
--- a/manifests/subsystems/fstab.pp
+++ b/manifests/subsystems/fstab.pp
@@ -1,12 +1,15 @@
class fstab(
- $type
+ $type,
+ $manage = hiera('nodo::fstab::manage', false)
) {
- file { "/etc/fstab":
- source => "puppet:///modules/nodo/etc/fstab/${type}",
- owner => "root",
- group => "root",
- mode => 0644,
- ensure => present,
- notify => Exec['update-initramfs'],
+ if $manage == true {
+ file { "/etc/fstab":
+ source => "puppet:///modules/nodo/etc/fstab/${type}",
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ notify => Exec['update-initramfs'],
+ }
}
}