
This patch updates init.pp so that it only attempts to install the mistral package (which should create the user, group, and install all the required dependencies itself). Includes tests for each supported OS Family. Change-Id: I3f996cddb5ff31431545e2f8e4a376fccc2eda61
27 lines
778 B
Puppet
27 lines
778 B
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'
|
|
$dbsync_command = "/usr/bin/python /usr/bin/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'
|
|
}
|
|
'Debian': {
|
|
$common_package_name = 'mistral'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} operatingsystem: \
|
|
${::operatingsystem}, module ${module_name} only support osfamily \
|
|
RedHat and Debian")
|
|
}
|
|
}
|
|
}
|