Remove acpid and acpi-support base on jessie machines.
authorPaul Wise <pabs@debian.org>
Mon, 9 Nov 2015 09:47:57 +0000 (17:47 +0800)
committerPaul Wise <pabs@debian.org>
Mon, 9 Nov 2015 10:16:06 +0000 (18:16 +0800)
ACPI support is handled by systemd-logind in jessie and later:

https://www.debian.org/releases/jessie/amd64/release-notes/ch-information.en.html#idp39488784

Suggested-by: ansgar on #debian-admin
modules/acpi/manifests/init.pp

index e6cce8d..598cd16 100644 (file)
@@ -1,16 +1,25 @@
 class acpi {
        if ! ($::debarchitecture in ['kfreebsd-amd64', 'kfreebsd-i386']) {
-               package { 'acpid':
-                       ensure => installed
-               }
+               if ($::lsbmajdistrelease >= 8) {
+                       package { 'acpid':
+                               ensure => purged
+                       }
 
-               service { 'acpid':
-                       ensure  => running,
-                       require => Package['acpid'],
-               }
+                       package { 'acpi-support-base':
+                               ensure => purged
+                       }
+               } else {
+                       package { 'acpid':
+                               ensure => installed
+                       }
 
-               package { 'acpi-support-base':
-                       ensure => installed
-               }
+                       service { 'acpid':
+                               ensure  => running,
+                               require => Package['acpid'],
+                       }
+
+                       package { 'acpi-support-base':
+                               ensure => installed
+                       }
        }
 }