aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/crypttab.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystems/crypttab.pp')
-rw-r--r--manifests/subsystems/crypttab.pp19
1 files changed, 11 insertions, 8 deletions
diff --git a/manifests/subsystems/crypttab.pp b/manifests/subsystems/crypttab.pp
index 6447005..0a9a4d1 100644
--- a/manifests/subsystems/crypttab.pp
+++ b/manifests/subsystems/crypttab.pp
@@ -1,12 +1,15 @@
class crypttab(
- $type
+ $type,
+ $manage = hiera('nodo::crypttab::manage', false)
) {
- file { "/etc/crypttab":
- source => "puppet:///modules/nodo/etc/crypttab/${type}",
- owner => "root",
- group => "root",
- mode => 0644,
- ensure => present,
- notify => Exec['update-initramfs'],
+ if $manage == true {
+ file { "/etc/crypttab":
+ source => "puppet:///modules/nodo/etc/crypttab/${type}",
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ notify => Exec['update-initramfs'],
+ }
}
}