aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/utils/laptop/tlp.pp15
1 files changed, 11 insertions, 4 deletions
diff --git a/manifests/utils/laptop/tlp.pp b/manifests/utils/laptop/tlp.pp
index 47e1712..0577602 100644
--- a/manifests/utils/laptop/tlp.pp
+++ b/manifests/utils/laptop/tlp.pp
@@ -2,8 +2,9 @@
# 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',
@@ -12,9 +13,15 @@ class nodo::utils::laptop::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