diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-05-30 11:01:17 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-05-30 11:01:17 -0300 |
commit | 70ef8c84b32bc67be37f616496e0f7af5da3df54 (patch) | |
tree | 0406d5360d7ae806cf02eb8bfc5e66678bf9d797 /manifests/utils/laptop/tlp.pp | |
parent | 2c75c692751b2b85458ccfd8499dff5129810f87 (diff) | |
download | puppet-nodo-70ef8c84b32bc67be37f616496e0f7af5da3df54.tar.gz puppet-nodo-70ef8c84b32bc67be37f616496e0f7af5da3df54.tar.bz2 |
Enhance laptop battery support
Diffstat (limited to 'manifests/utils/laptop/tlp.pp')
-rw-r--r-- | manifests/utils/laptop/tlp.pp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/manifests/utils/laptop/tlp.pp b/manifests/utils/laptop/tlp.pp new file mode 100644 index 0000000..47e1712 --- /dev/null +++ b/manifests/utils/laptop/tlp.pp @@ -0,0 +1,25 @@ +# See https://www.thinkwiki.org/wiki/Tp_smapi +# Support available apci-call or tp-smapi +# Conflicts with laptop-mode-tools from nodo::utils::laptop::mode_tools +class nodo::utils::laptop::tlp( + $implementation = 'acpi-call', + $ensure = 'installed', +) { + package { [ + 'tlp', + ]: + ensure => $ensure, + } + + package { [ + "${implementation}-dkms", + ]: + ensure => $ensure, + } + + # This package requires network-manager, which + # conflicts with wicd. + package { 'tlp-rdw': + ensure => absent, + } +} |