remove mpt-status everywhere
authorPeter Palfrader <peter@palfrader.org>
Thu, 7 Sep 2017 07:07:37 +0000 (09:07 +0200)
committerPeter Palfrader <peter@palfrader.org>
Thu, 7 Sep 2017 07:08:17 +0000 (09:08 +0200)
No debian.org host actually has a working mpt-status.  On wieck on
stretch it also keeps sendung us mail.  Get rid of it everywhere.

In a next step, we should also retire the facter.

modules/hardware/manifests/raid/raidmpt.pp

index f371c72..44cb03e 100644 (file)
@@ -7,27 +7,11 @@
 #   include hardware::raid::raidmpt
 #
 class hardware::raid::raidmpt {
-       if $::mptraid {
-               package { 'mpt-status':
-                       ensure => installed
-               }
-
-               file { '/etc/default/mpt-statusd':
-                       content => "# This file is under puppet control\nRUN_DAEMON=no\n",
-                       notify  => Exec['mpt-statusd-stop'],
-               }
-
-               exec { 'mpt-statusd-stop':
-                       command => 'pidfile=/var/run/mpt-statusd.pid; ! [ -e "$pidfile" ] || /sbin/start-stop-daemon --oknodo --stop --signal TERM --quiet --pidfile "$pidfile"; rm -f "$pidfile";  pkill -INT  -P 1 -u 0 -f "/usr/bin/daemon /etc/init.d/mpt-statusd check_mpt"',
-                       refreshonly => true,
-               }
-       } else {
-               package { 'mpt-status':
-                       ensure => purged,
-               }
+       package { 'mpt-status':
+               ensure => purged,
+       }
 
-               file { '/etc/default/mpt-statusd':
-                       ensure => absent,
-               }
+       file { '/etc/default/mpt-statusd':
+               ensure => absent,
        }
 }