fuel-library/deployment/puppet/heat_ha/manifests/engine.pp
Vladimir Kuklin 710553c1cc All the work done for fuel-library packaging
1) Package fuel library into three different
packages:
RPM: fuel-library6.1
ALL: fuel-ha-utils, fuel-misc

2) Install packages onto slave nodes
implements blueprint: package-fuel-components

Change-Id: Ie759857fb94db9aa94aaeaeda2c6ab5bb159cc9e
2015-05-15 02:44:53 +03:00

44 lines
1015 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'
#}
# 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 { $service_name :
primitive_type => $primitive_type,
metadata => $metadata,
complex_type => 'clone',
ms_metadata => $ms_metadata,
operations => $operations,
# ocf_script_template => $ocf_script_template,
}
}