aboutsummaryrefslogtreecommitdiff
path: root/manifests/base/laptop.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/base/laptop.pp')
-rw-r--r--manifests/base/laptop.pp33
1 files changed, 33 insertions, 0 deletions
diff --git a/manifests/base/laptop.pp b/manifests/base/laptop.pp
new file mode 100644
index 0000000..dbafda7
--- /dev/null
+++ b/manifests/base/laptop.pp
@@ -0,0 +1,33 @@
+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,
+ },
+ }
+}