eb22a92462
This uplifts the openstack::heat directly into the calling task. Closes-bug: #1544179 Change-Id: Id3a39e0c75832e64c2f60664c0ffc0acfa7c0ec3 Blueprint: fuel-remove-conflict-openstack
53 lines
1.0 KiB
Puppet
53 lines
1.0 KiB
Puppet
#
|
|
# Configure heat-engine in pacemaker/corosync
|
|
#
|
|
# == Parameters
|
|
#
|
|
# None.
|
|
#
|
|
# === Notes
|
|
#
|
|
# This class requires that ::heat::engine be included in the catalog prior to
|
|
# the inclusion of this class.
|
|
#
|
|
class cluster::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' => {
|
|
'interval' => '0',
|
|
'timeout' => '60',
|
|
},
|
|
'stop' => {
|
|
'interval' => '0',
|
|
'timeout' => '60',
|
|
},
|
|
}
|
|
|
|
$ms_metadata = {
|
|
'interleave' => true,
|
|
}
|
|
|
|
pacemaker::service { $::heat::params::engine_service_name :
|
|
primitive_type => $primitive_type,
|
|
metadata => $metadata,
|
|
complex_type => 'clone',
|
|
complex_metadata => $ms_metadata,
|
|
operations => $operations,
|
|
}
|
|
|
|
}
|