From: Stephen Gran Date: Sun, 25 Apr 2010 14:13:21 +0000 (+0100) Subject: and enable monit from inittab: what could go wrong? X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=23893e3d9d7aed224dfb55bc6c732739120d0209;p=mirror%2Fdsa-puppet.git and enable monit from inittab: what could go wrong? Signed-off-by: Stephen Gran --- diff --git a/modules/monit/manifests/init.pp b/modules/monit/manifests/init.pp index efa8689d6..63ad03c83 100644 --- a/modules/monit/manifests/init.pp +++ b/modules/monit/manifests/init.pp @@ -1,7 +1,21 @@ class monit { package { "monit": ensure => installed } + augeas { "inittab": + context => "/files/etc/inittab", + changes => [ "set mo/runlevels 2345", + "set mo/action respawn", + "set mo/process \"/usr/sbin/monit -d 300 -I -c /etc/monit/monitrc -s /var/lib/monit/monit.state\"", + ], + onlyif => "match mo size == 0", + notify => Exec["init q"], + } + + file { + "/etc/rc2.d/S99monit": + ensure => absent; + "/etc/monit/": ensure => directory, owner => root,