From 19dff94b062f23d89b6bb85a0de8d053873452c5 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 1 Jun 2017 18:11:42 -0300 Subject: Support for both tp-smapi and acpi-call at nodo::utils::laptop::tlp simultaneously --- manifests/utils/laptop/tlp.pp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'manifests/utils/laptop/tlp.pp') 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 -- cgit v1.2.3