aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-06-01 18:11:42 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-06-01 18:11:42 -0300
commit19dff94b062f23d89b6bb85a0de8d053873452c5 (patch)
treecdf0940d8f39da23df16dddc955046d9a1697f86
parent98b93f6a1ee83010442b12d4f26b5471ab3bdf48 (diff)
downloadpuppet-nodo-19dff94b062f23d89b6bb85a0de8d053873452c5.tar.gz
puppet-nodo-19dff94b062f23d89b6bb85a0de8d053873452c5.tar.bz2
Support for both tp-smapi and acpi-call at nodo::utils::laptop::tlp simultaneously
-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