fuel-library/deployment/puppet/heat_ha/manifests/engine.pp
Dmitry Ilyin c045ce3078 Fix idempotency of cs_resource
* insync? to drop status metadata from checks
* code cleanup
* fix rspec for cs_resource type
* switch location add implementation from pcs
  to cibadmin --patch to solve problems with
  cib changes not being synced to other nodes

related-blueprint: pacemaker-improvements
Related-Bug: 1391599
Related-Bug: 1390480
Related-Bug: 1396481

Change-Id: I5410b91ea01fc8c6805de6becdf0800d0d486188
Signed-off-by: Sergii Golovatiuk <sgolovatiuk@mirantis.com>
2014-11-27 18:11:16 +03:00

41 lines
864 B
Puppet

class heat_ha::engine inherits heat::engine {
$primitive_type = 'heat-engine'
if $::osfamily == 'RedHat' {
$ocf_script_template = 'heat/heat_engine_centos.ocf.erb'
} else {
$ocf_script_template = 'heat/heat_engine_ubuntu.ocf.erb'
}
$metadata = {
'resource-stickiness' => '1'
}
$operations = {
'monitor' => {
'interval' => '20',
'timeout' => '30',
},
'start' => {
'timeout' => '60',
},
'stop' => {
'timeout' => '60',
},
}
$ms_metadata = {
'interleave' => true,
}
pacemaker_wrappers::service { $service_name :
primitive_type => $primitive_type,
metadata => $metadata,
complex_type => 'clone',
ms_metadata => $ms_metadata,
operations => $operations,
ocf_script_template => $ocf_script_template,
}
}