aboutsummaryrefslogtreecommitdiff
path: root/manifests/utils/laptop/thinkpad/battery.pp
blob: ecf4649a859768a09a5f93948ca0a279cfd004aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# apci-call or tp-smapi available
# https://www.thinkwiki.org/wiki/Tp_smapi
class nodo::utils::laptop::thinkpad::battery(
  $implementation = 'acpi-call',
  $ensure         = 'installed',
) {
  package { [
    'tlp',
  ]:
    ensure => $ensure,
  }

  package { [
    "${implementation}-dkms",
  ]:
    ensure => $ensure,
  }
}