Files
puppet-nova/manifests/conductor.pp
David Gurtner a9201533fd Ensure conductor_workers stay at previous value
During the refactoring of the conductor_workers parameter from nova::api
to nova::conductor, the conductor_workers default changed from
$::processorcount to the parameter being absent.

While this is consistent with the nova default behaviour, it changes the
value for people who currently have a different default set. The solution is
to do nothing, in case no value is given.

For reference see:
https://review.openstack.org/#/c/106656
https://review.openstack.org/#/c/108941
http://docs.openstack.org/trunk/config-reference/content/list-of-compute-config-options.html

Change-Id: I908fc4953522f0b1db8f43882a44407aba9fa9f9
2014-07-25 18:30:11 +02:00

46 lines
1.0 KiB
Puppet

# == Class: nova::conductor
#
# Manages nova conductor package and service
#
# === Parameters:
#
# [*enabled*]
# (optional) Whether to enable the nova-conductor service
# Defaults to false
#
# [*manage_service*]
# (optional) Whether to start/stop the service
# Defaults to true
#
# [*ensure_package*]
# (optional) The state of the nova conductor package
# Defaults to 'present'
#
# [*workers*]
# (optional) Number of workers for OpenStack Conductor service
# Defaults to undef (i.e. parameter will not be present)
#
class nova::conductor(
$enabled = false,
$manage_service = true,
$ensure_package = 'present',
$workers = undef,
) {
include nova::params
nova::generic_service { 'conductor':
enabled => $enabled,
manage_service => $manage_service,
package_name => $::nova::params::conductor_package_name,
service_name => $::nova::params::conductor_service_name,
ensure_package => $ensure_package,
}
if $workers {
nova_config {
'conductor/workers': value => $workers;
}
}
}