fuel-library/deployment/puppet/monit/manifests/params.pp
Bogdan Dobrelya 3b42fd8a93 Adapt monit module for Fuel needs
* Lower service health polling from 120 to 30 sec
* Add timeout for start/stop actions
* Add pidless services tracking as well (e.g. we will
  need it for nova-compute, nova-network)
* Add params for Redhat/Centos support
* Make config template params based
* Add syslog support
* Redefine service's provider to monit, if already
  in catalog
* Adjust rspecs
* Add docs

Related blueprint pacemaker-improvements

Change-Id: Id4f594ceda640175f20594c6a4787c8c0145f433
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2014-10-06 13:56:40 +02:00

23 lines
585 B
Puppet

#
class monit::params {
case $::osfamily {
'RedHat' : {
$idfile = '/var/.monit.id'
$statefile = '/var/.monit.state'
$basedir = '/var/monit'
$included = '/etc/monit.d'
$config = '/etc/monit.conf'
}
'Debian' : {
$idfile = '/var/lib/monit/id'
$statefile = '/var/lib/monit/state'
$basedir = '/var/lib/monit/events'
$included = '/etc/monit/conf.d'
$config = '/etc/monit/monitrc'
}
default : {
fail("Unsupported osfamily: ${osfamily} for os ${operatingsystem}")
}
}
}