diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-09-23 16:28:33 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-09-23 16:28:33 -0300 |
commit | 50d24f812a1ea34e190632cfef4b217490d7522d (patch) | |
tree | 6519aefc708a54eb530af3c54719d83ea72bca94 /manifests/base | |
parent | 403e7584ff6f0726d13151075d36d8cba8795b16 (diff) | |
download | puppet-nodo-50d24f812a1ea34e190632cfef4b217490d7522d.tar.gz puppet-nodo-50d24f812a1ea34e190632cfef4b217490d7522d.tar.bz2 |
Adds nodo::subsystem::hibernate
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 } |