Add a max_stacks_per_tenant parameter

The default of 100 is barely useable. Let's add a new parameter
max_stacks_per_tenant to allow increasing this.

Change-Id: I2bd9ce729b5e2b5ff6577951989b93390cb3a6bf
This commit is contained in:
Thomas Goirand 2020-07-01 17:36:42 +02:00
parent ad82b1f9a0
commit ac5eaeb657
3 changed files with 18 additions and 0 deletions

View File

@ -277,6 +277,11 @@
# take for evaluation.
# Defaults to $::os_service_default.
#
# [*max_stacks_per_tenant*]
# (optional) Maximum number of stacks any one tenant may have active at one
# time.
# Defaults to $::os_service_default.
#
# DEPRECATED PARAMETERS
#
# [*database_min_pool_size*]
@ -343,6 +348,7 @@ class heat(
$auth_strategy = 'keystone',
$yaql_memory_quota = $::os_service_default,
$yaql_limit_iterators = $::os_service_default,
$max_stacks_per_tenant = $::os_service_default,
# DEPRECATED PARAMETERS
$database_min_pool_size = undef,
) {
@ -433,6 +439,7 @@ class heat(
'DEFAULT/region_name_for_services': value => $region_name;
'DEFAULT/enable_stack_abandon': value => $enable_stack_abandon;
'DEFAULT/enable_stack_adopt': value => $enable_stack_adopt;
'DEFAULT/max_stacks_per_tenant': value => $max_stacks_per_tenant;
'ec2authtoken/auth_uri': value => $keystone_ec2_uri;
'paste_deploy/flavor': value => $flavor;
'yaql/limit_iterators': value => $yaql_limit_iterators;

View File

@ -0,0 +1,7 @@
---
features:
- |
It is now possible to configure the max_stacks_per_tenant of heat, which
by default, is set to 100 in heat. Since 100 stacks per tenant can be a
way too small in some setups, it is convenient to be able to configure
this value with puppet.

View File

@ -89,6 +89,10 @@ describe 'heat' do
is_expected.to contain_heat_config('DEFAULT/max_template_size').with_value('<SERVICE DEFAULT>')
end
it 'configures max_stacks_per_tenant' do
is_expected.to contain_heat_config('DEFAULT/max_stacks_per_tenant').with_value('<SERVICE DEFAULT>')
end
it 'configures max_json_body_size' do
is_expected.to contain_heat_config('DEFAULT/max_json_body_size').with_value('<SERVICE DEFAULT>')
end