
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
34 lines
663 B
Puppet
34 lines
663 B
Puppet
#
|
|
# Configure swift s3api.
|
|
#
|
|
# == Dependencies
|
|
#
|
|
# == Parameters
|
|
#
|
|
# [*ensure*]
|
|
# Enable or not s3api middleware
|
|
# Defaults to 'present'
|
|
#
|
|
# [*auth_pipeline_check*]
|
|
# 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,
|
|
$max_upload_part_num = 1000,
|
|
) {
|
|
|
|
include swift::deps
|
|
|
|
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;
|
|
}
|
|
}
|