class nodo::desktop inherits nodo::personal {
include utils::desktop
- # fstab
- if $fstab != false {
- class { 'fstab':
- type => 'desktop',
- }
+ class { 'fstab':
+ type => 'desktop',
}
- # crypttab
- if $crypttab != false {
- class { 'crypttab':
- type => 'desktop',
- }
+ class { 'crypttab':
+ type => 'desktop',
}
}
class nodo::desktop::minimal {
- $fstab = false
- $crypttab = false
$pam = false
# Backups should happen when the box is likely to be online
include firewall::ppp
include dhclient
- # fstab
- if $fstab != false {
- class { 'fstab':
- type => 'laptop',
- }
+ class { 'fstab':
+ type => 'laptop',
}
- # crypttab
- if $crypttab != false {
- class { 'crypttab':
- type => $hibernate ? {
- false => "laptop",
- default => "laptop.hibernate",
- },
- }
+ class { 'crypttab':
+ type => $hibernate ? {
+ false => "laptop",
+ default => "laptop.hibernate",
+ },
}
# hibernation
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'],
+ }
}
}
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'],
+ }
}
}