puppet-nova/manifests/conductor.pp
Emilien Macchi ff60e30e79 Deprecations and updates for Newton
Some parameters needed to be moved to another section, some others are
deprecated and do nothing in Nova.

Change-Id: I0a79209c687714c3bbcac50a694bfb53a75ca05a
2016-04-22 16:12:04 -04:00

60 lines
1.4 KiB
Puppet

# == Class: nova::conductor
#
# Manages nova conductor package and service
#
# === Parameters:
#
# [*enabled*]
# (optional) Whether to enable the nova-conductor service
# Defaults to true
#
# [*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)
#
# DEPRECATED PARAMETERS
#
# [*use_local*]
# (optional) Perform nova-conductor operations locally
# Defaults to undef
#
class nova::conductor(
$enabled = true,
$manage_service = true,
$ensure_package = 'present',
$workers = undef,
# DEPREACTED PARAMETERS
$use_local = undef,
) {
if $use_local {
warning('use_local parameter is deprecated, has no effect and will be dropped in a future release.')
}
include ::nova::deps
include ::nova::db
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;
}
}
}