# 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',
+ $acpi_call = 'present',
+ $tp_smapi = 'present',
+ $ensure = 'installed',
) {
package { [
'tlp',
}
package { [
- "${implementation}-dkms",
+ "acpi-call-dkms",
]:
- ensure => $ensure,
+ ensure => $acpi_call,
+ }
+
+ package { [
+ "tp-smapi-dkms",
+ ]:
+ ensure => $tp_smapi,
}
# This package requires network-manager, which