From: Peter Palfrader Date: Sun, 28 Feb 2010 20:06:44 +0000 (+0100) Subject: mpt has funny ears X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=46275e646b84c1f6bad2673fc3d118fb22ec24bf;p=mirror%2Fdsa-puppet.git mpt has funny ears --- diff --git a/manifests/site.pp b/manifests/site.pp index 7cfd06950..00f3d50c5 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -43,7 +43,7 @@ node default { "true": { package { acpid: ensure => installed } } } case $mptraid { - "true": { package { mpt-status: ensure => installed } } + "true": { include raid-mpt } } case $mta { diff --git a/modules/raid-mpt/manifest/init.pp b/modules/raid-mpt/manifest/init.pp new file mode 100644 index 000000000..c5cdaf793 --- /dev/null +++ b/modules/raid-mpt/manifest/init.pp @@ -0,0 +1,22 @@ +class raid-mpt { + package { + mtp-status: ensure => installed; + } + + file { + "/etc/default/mpt-statusd": + content => "# This file is under puppet control" + + "RUN_DAEMON=no", + notify => Exec["mpt-statusd-stop"], + ; + } + exec { + "mpt-statusd-stop": + command: 'pidfile=/var/run/mpt-statusd.pid; ! [ -e "$pidfile" ] || /sbin/start-stop-daemon --oknodo --stop --quiet --pidfile "$pidfile"; rm -f "$pidfile"' + refreshonly => true, + ; + } +} +# vim:set et: +# vim:set ts=4: +# vim:set shiftwidth=4: