505c5dbbe4
... because the latest lint no longer allows usage of legacy facts and
top scope fact.
This also fixes the wrong wsgi script name introduced by [1] to fix
broken litmus jobs.
[1] d7a1ea5fb7
Change-Id: Idb7d655242ccd6f785ea4dfbb94d8ff3ad961b03
68 lines
1.8 KiB
Puppet
68 lines
1.8 KiB
Puppet
# == Class: trove::conductor
|
|
#
|
|
# Manages trove conductor package and service
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*enabled*]
|
|
# (optional) Whether to enable the trove-conductor service
|
|
# Defaults to true
|
|
#
|
|
# [*manage_service*]
|
|
# (optional) Whether to start/stop the service
|
|
# Defaults to true
|
|
#
|
|
# [*package_ensure*]
|
|
# (optional) The state of the trove conductor package
|
|
# Defaults to 'present'
|
|
#
|
|
# [*conductor_manager*]
|
|
# (optional) Trove conductor manager.
|
|
# Defaults to 'trove.conductor.manager.Manager'.
|
|
#
|
|
# [*workers*]
|
|
# (optional) Number of trove conductor worker processes to start
|
|
# Default: $facts['os_workers']
|
|
#
|
|
# [*enable_profiler*]
|
|
# (optional) If False fully disable profiling feature.
|
|
# Default: $facts['os_service_default']
|
|
#
|
|
# [*trace_sqlalchemy*]
|
|
# (optional) If False doesn't trace SQL requests.
|
|
# Default: $facts['os_service_default']
|
|
#
|
|
class trove::conductor(
|
|
$enabled = true,
|
|
$manage_service = true,
|
|
$package_ensure = 'present',
|
|
$conductor_manager = 'trove.conductor.manager.Manager',
|
|
$workers = $facts['os_workers'],
|
|
$enable_profiler = $facts['os_service_default'],
|
|
$trace_sqlalchemy = $facts['os_service_default'],
|
|
) {
|
|
|
|
include trove::deps
|
|
include trove::params
|
|
|
|
# basic service config
|
|
trove_config {
|
|
'DEFAULT/trove_conductor_workers': value => $workers;
|
|
}
|
|
|
|
# profiler config
|
|
trove_config {
|
|
'profiler/enabled': value => $enable_profiler;
|
|
'profiler/trace_sqlalchemy': value => $trace_sqlalchemy;
|
|
}
|
|
|
|
trove::generic_service { 'conductor':
|
|
enabled => $enabled,
|
|
manage_service => $manage_service,
|
|
package_name => $::trove::params::conductor_package_name,
|
|
service_name => $::trove::params::conductor_service_name,
|
|
package_ensure => $package_ensure,
|
|
}
|
|
|
|
}
|