diff options
Diffstat (limited to 'manifests/base')
-rw-r--r-- | manifests/base/laptop.pp | 47 |
1 files changed, 5 insertions, 42 deletions
diff --git a/manifests/base/laptop.pp b/manifests/base/laptop.pp index 3eeb417..7da2163 100644 --- a/manifests/base/laptop.pp +++ b/manifests/base/laptop.pp @@ -1,47 +1,10 @@ class nodo::base::laptop inherits nodo::base::personal { - include nodo::utils::laptop include nodo::subsystem::dhclient + include nodo::subsystem::hibernate + include nodo::utils::laptop include firewall::wifi - include firewall::openvpn - - class { 'firewall::ppp': } - - $hibernate = hiera('nodo::laptop::hibernate', false) - - # Hibernation - file { "/etc/initramfs-tools/conf.d/resume": - owner => "root", - group => "root", - mode => 0644, - content => "RESUME=/dev/mapper/swap\n", - notify => Exec['update-initramfs'], - ensure => $hibernate ? { - false => absent, - default => present, - }, - } - - file { "/etc/uswsusp.conf": - owner => "root", - group => "root", - mode => 0644, - source => 'puppet:///modules/nodo/etc/uswsusp.conf', - require => Package['uswsusp'], - ensure => $hibernate ? { - false => absent, - default => present, - }, - } - file { "/etc/pm/config.d/00sleep_module": - owner => "root", - group => "root", - mode => 0644, - content => "SLEEP_MODULE=\"uswsusp\"\n", - require => Package['uswsusp'], - ensure => $hibernate ? { - false => absent, - default => present, - }, - } + # Optional + #include firewall::openvpn + #include firewall::ppp } |