fuel-library/deployment/puppet/heat_ha/manifests/engine.pp
Denis Egorenko f2326bb68b Combine Heat-engine OCF scripts for Ubuntu & Centos into one common
Currently we have two ocf scripts for Heat-engine: for ubuntu and
centos. This patch removes this separation and combines into
one common OCF script.

Change-Id: I5e440f50da20ef26fca22a34df98864925f8211e
Closes-bug: #1378032
2015-12-11 16:29:39 +03:00

39 lines
816 B
Puppet

class heat_ha::engine inherits heat::engine {
include heat::params
$primitive_type = 'heat-engine'
# migration-threshold is number of tries to
# start resource on each controller node
$metadata = {
'resource-stickiness' => '1',
'migration-threshold' => '3'
}
$operations = {
'monitor' => {
'interval' => '20',
'timeout' => '30',
},
'start' => {
'timeout' => '60',
},
'stop' => {
'timeout' => '60',
},
}
$ms_metadata = {
'interleave' => true,
}
pacemaker_wrappers::service { $::heat::params::engine_service_name :
primitive_type => $primitive_type,
metadata => $metadata,
complex_type => 'clone',
ms_metadata => $ms_metadata,
operations => $operations,
}
}