
This patch modifies mistral::db::sync so that it runs 'update head' in addition to 'populate'. This brings the mistral "db_sync" class more inline with other Puppet Openstack modules that run DB sync and fixes issues in bootstrapping mistral in that running populate without first having an 'upgrade head' would always fail. Both actions appear to be idempotent so re-running them should be fine. Change-Id: I13f037c3eea944d5f41ced904623e38ce3fcae44
41 lines
1.4 KiB
Puppet
41 lines
1.4 KiB
Puppet
# == Class: mistral::params
|
|
#
|
|
# Parameters for puppet-mistral
|
|
#
|
|
class mistral::params {
|
|
|
|
$mistral_conf_dir = '/etc/mistral'
|
|
$mistral_conf = "${mistral_conf_dir}/mistral.conf"
|
|
$client_package = 'python-mistralclient'
|
|
$log_dir ='/var/log/mistral'
|
|
$db_sync_command = "mistral-db-manage --config-file=${mistral_conf} upgrade head"
|
|
$db_populate_command = "mistral-db-manage --config-file=${mistral_conf} populate"
|
|
$update_service_command = '/usr/bin/systemctl daemon-reload'
|
|
|
|
case $::osfamily {
|
|
'RedHat': {
|
|
$common_package_name = 'openstack-mistral-common'
|
|
$api_package_name = 'openstack-mistral-api'
|
|
$api_service_name = 'openstack-mistral-api'
|
|
$engine_package_name = 'openstack-mistral-engine'
|
|
$engine_service_name = 'openstack-mistral-engine'
|
|
$executor_package_name = 'openstack-mistral-executor'
|
|
$executor_service_name = 'openstack-mistral-executor'
|
|
}
|
|
'Debian': {
|
|
$common_package_name = 'mistral'
|
|
$api_package_name = 'mistral-api'
|
|
$api_service_name = 'mistral-api'
|
|
$engine_package_name = 'mistral-engine'
|
|
$engine_service_name = 'mistral-engine'
|
|
$executor_package_name = 'mistral-executor'
|
|
$executor_service_name = 'mistral-executor'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} operatingsystem: \
|
|
${::operatingsystem}, module ${module_name} only support osfamily \
|
|
RedHat and Debian")
|
|
}
|
|
}
|
|
}
|