Add max_upload_part_num param

The default in swift is 1000, though in S3, it is 10 000. Therefore,
it is necessary to be able to configure it, so that a deployment
can be set with the same limits as S3.

Change-Id: Ib6105f3a06fe2e42864039356bf58dbe83749897
This commit is contained in:
Thomas Goirand 2020-03-12 11:09:06 +01:00
parent 3b4e562faf
commit 294972d8fc
2 changed files with 8 additions and 1 deletions

View File

@ -13,9 +13,14 @@
# Enable pipeline order check
# Defaults to 'false'
#
# [*max_upload_part_num*]
# Max upload per num
# Default to 1000.
#
class swift::proxy::s3api(
$ensure = 'present',
$auth_pipeline_check = false
$auth_pipeline_check = false,
$max_upload_part_num = 1000,
) {
include swift::deps
@ -23,5 +28,6 @@ class swift::proxy::s3api(
swift_proxy_config {
'filter:s3api/use': value => 'egg:swift#s3api';
'filter:s3api/auth_pipeline_check': value => $auth_pipeline_check;
'filter:s3api/max_upload_part_num': value => $max_upload_part_num;
}
}

View File

@ -4,6 +4,7 @@ describe 'swift::proxy::s3api' do
shared_examples 'swift::proxy::s3api' do
it { is_expected.to contain_swift_proxy_config('filter:s3api/use').with_value('egg:swift#s3api') }
it { is_expected.to contain_swift_proxy_config('filter:s3api/auth_pipeline_check').with_value('false') }
it { is_expected.to contain_swift_proxy_config('filter:s3api/max_upload_part_num').with_value('1000') }
end
on_supported_os({