fuel-library/deployment/puppet/ceilometer_ha/manifests/alarm/evaluator.pp
dtrishkin 8daf024982 Start ceilometer resource agents
* Ceilometer agent central and ceilometer alarm evaluator
   now start as resource agents of pacemaker;
 * Disable upstart for this two services.

Change-Id: Ic15a3bfb6238e4281b06aae0a3f9fe4abf96590d
Closes-bug: #1418984
Closes-bug: #1422403
2015-02-18 16:30:59 +00:00

20 lines
623 B
Puppet

class ceilometer_ha::alarm::evaluator inherits ceilometer::alarm::evaluator {
pacemaker_wrappers::service { $::ceilometer::params::alarm_evaluator_service_name :
primitive_type => 'ceilometer-alarm-evaluator',
metadata => { 'resource-stickiness' => '1' },
parameters => { 'user' => 'ceilometer' },
operations => {
'monitor' => {
'interval' => '20',
'timeout' => '30',
},
'start' => {
'timeout' => '360',
},
'stop' => {
'timeout' => '360',
},
},
ocf_script_file => 'cluster/ocf/ceilometer-alarm-evaluator',
}
}