From 5a55d6224007f7ac0d0e6bd5f649e50b7d60ae3d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 3 Feb 2017 08:44:59 -0200 Subject: Adds ensure param to utils classes --- manifests/utils/laptop/thinkpad/battery.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'manifests/utils/laptop') diff --git a/manifests/utils/laptop/thinkpad/battery.pp b/manifests/utils/laptop/thinkpad/battery.pp index c8fdb52..c82112c 100644 --- a/manifests/utils/laptop/thinkpad/battery.pp +++ b/manifests/utils/laptop/thinkpad/battery.pp @@ -1,16 +1,17 @@ # apci-call or tp-smapi available class nodo::utils::laptop::thinkpad::battery( $implementation = 'acpi-call', + $ensure = 'installed', ) { package { [ 'tlp', ]: - ensure => present, + ensure => $ensure, } package { [ "${implementation}-dkms", ]: - ensure => present, + ensure => $ensure, } } -- cgit v1.2.3