class nodo::base::laptop inherits nodo::base::personal { include nodo::utils::laptop include nodo::subsystem::dhclient include firewall::wifi include firewall::openvpn include firewall::ppp class { 'nodo::subsystem::fstab': type => 'laptop', } $hibernate = hiera('nodo::laptop::hibernate', false) class { 'nodo::subsystem::crypttab': type => $hibernate ? { false => "laptop", default => "laptop.hibernate", }, } # Hibernation file { "/etc/initramfs-tools/conf.d/resume": owner => "root", group => "root", mode => 0644, content => "RESUME=/dev/mapper/cswap\n", notify => Exec['update-initramfs'], ensure => $hibernate ? { false => absent, default => present, }, } }