puppet-nova/manifests/compute/ironic.pp
Takashi Kajinami cd56b79b04 Fix duplicated declaration when the deprecated parameter is used
This patch fixes duplicaed declaration of the same parameter when
nova::compute::ironic::max_concurrent_builds is used.

Error: Evaluation Error: Error while evaluating a Resource Statement,
Duplicate declaration: Nova_config[DEFAULT/max_concurrent_builds] is
already declared at ...

Change-Id: I8ac22df2bf0b6ea56c24711ca09082e6b7e1a7b4
2020-09-10 21:04:19 +09:00

35 lines
847 B
Puppet

# == Class: nova::compute::ironic
#
# Configures Nova compute service to use Ironic.
#
# === Parameters:
#
# [*compute_driver*]
# (optional) Compute driver.
# Defaults to 'ironic.IronicDriver'
#
# [*max_concurrent_builds*]
# (optional) Maximum number of instance builds to run concurrently
# Defaults to undef
#
class nova::compute::ironic (
$compute_driver = 'ironic.IronicDriver',
# DEPRECATED PARAMETERS
$max_concurrent_builds = undef,
) {
include nova::deps
require nova::ironic::common
include ironic::client
nova_config {
'DEFAULT/compute_driver': value => $compute_driver;
}
if $max_concurrent_builds != undef {
warning('The nova::compute::ironic::max_concurrent_builds parameter is deprecated \
and will be removed in a future release. Use nova::compute::max_concurrent_builds instead.')
}
}