From 180bb8abadf2700329bbb94ba78e87d1bc538b22 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 7 Sep 2017 09:07:37 +0200 Subject: [PATCH] remove mpt-status everywhere 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 | 26 +++++----------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/modules/hardware/manifests/raid/raidmpt.pp b/modules/hardware/manifests/raid/raidmpt.pp index f371c7227..44cb03eed 100644 --- a/modules/hardware/manifests/raid/raidmpt.pp +++ b/modules/hardware/manifests/raid/raidmpt.pp @@ -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, } } -- 2.20.1