]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Support for both tp-smapi and acpi-call at nodo::utils::laptop::tlp simultaneously
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 1 Jun 2017 21:11:42 +0000 (18:11 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 1 Jun 2017 21:11:42 +0000 (18:11 -0300)
manifests/utils/laptop/tlp.pp

index 47e1712e69c9f13ee42c96d40252046988e556b4..057760256a0c2e2dff5efe127c7a3f43e86c8d98 100644 (file)
@@ -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