fasolo, klecker: blacklist acpi power meter. rt#6974
authorHéctor Orón Martínez <zumbi@debian.org>
Sat, 25 Nov 2017 11:13:03 +0000 (12:13 +0100)
committerHéctor Orón Martínez <zumbi@debian.org>
Wed, 31 Jan 2018 17:27:59 +0000 (18:27 +0100)
workaround dmesg noisy errors, which are safe to ignore:
```
[3723410.864219] ACPI Error: SMBus/IPMI/GenericSerialBus write requires Buffer of length 66, found length 32 (20160831/exfield-427)
[3723410.890212] ACPI Error: Method parse/execution failed [\_SB.PMI0._PMM] (Node ffffa0e2fe877280), AE_AML_BUFFER_LIMIT (20160831/psparse-543)
[3723410.920171] ACPI Exception: AE_AML_BUFFER_LIMIT, Evaluating _PMM (20160831/power_meter-338)
```

Signed-off-by: Héctor Orón Martínez <zumbi@debian.org>
modules/linux/manifests/init.pp

index e91ef22..fc24886 100644 (file)
@@ -3,4 +3,12 @@ class linux {
        include ferm::per_host
        include entropykey
        include rng_tools
+       if $::hostname in [fasolo, klecker] {
+               $blacklist_acpi_power_meter = true
+       }
+       if $blacklist_acpi_power_meter {
+               file { '/etc/modprobe.d/hwmon.conf':
+                       content => "blacklist acpi_power_meter"
+               }
+       }
 }