aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-07-29 10:20:36 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-07-29 10:20:36 -0300
commit5e394fe75cfa4d061454865496232bf660e58f7d (patch)
treed96b973558f0d32abbcc55d8868be5276da07258 /manifests
parent80034bc49561eecf72a06af532dab5fcec96ae6e (diff)
downloadpuppet-nodo-5e394fe75cfa4d061454865496232bf660e58f7d.tar.gz
puppet-nodo-5e394fe75cfa4d061454865496232bf660e58f7d.tar.bz2
Adds nodo::utils::laptop::thinkpad::battery
Diffstat (limited to 'manifests')
-rw-r--r--manifests/utils/firmware/smapi.pp5
-rw-r--r--manifests/utils/laptop/thinkpad/battery.pp12
2 files changed, 12 insertions, 5 deletions
diff --git a/manifests/utils/firmware/smapi.pp b/manifests/utils/firmware/smapi.pp
deleted file mode 100644
index b6f2907..0000000
--- a/manifests/utils/firmware/smapi.pp
+++ /dev/null
@@ -1,5 +0,0 @@
-class nodo::utils::firmware::smapi {
- package { 'tp-smapi-dkms':
- ensure => present,
- }
-}
diff --git a/manifests/utils/laptop/thinkpad/battery.pp b/manifests/utils/laptop/thinkpad/battery.pp
new file mode 100644
index 0000000..9073f04
--- /dev/null
+++ b/manifests/utils/laptop/thinkpad/battery.pp
@@ -0,0 +1,12 @@
+# apci-call or tp-smapi available
+class nodo::utils::laptop::thinkpad::battery(
+ $implementation = 'acpi-call',
+) {
+ package { 'tlp':
+ ensure => present,
+ }
+
+ package { "${implementation}-dkms":
+ ensure => present,
+ }
+}