aboutsummaryrefslogtreecommitdiff
path: root/manifests/utils/laptop/tlp.pp
blob: 47e1712e69c9f13ee42c96d40252046988e556b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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,
  }
}