60ed2ee79c
Maintains full backward compatibility. Use swift_proxy_config ini provider to mange proxy-server.conf. Remove all erb templates. Move all template logic into proxy middleware classes. To purge proxy.conf of settings that are not specified set the new paramater "purge_config" to "true". Change-Id: I0a143cf812043ea0f9a008a6e5c60ec87f9a4e9a
29 lines
750 B
Puppet
29 lines
750 B
Puppet
#
|
|
# Configure swift copy.
|
|
#
|
|
# == Examples
|
|
#
|
|
# include ::swift::proxy::copy
|
|
#
|
|
# == Parameters
|
|
#
|
|
# [*object_post_as_copy*]
|
|
# Set object_post_as_copy = false to turn on fast posts where only the metadata
|
|
# changes are stored anew and the original data file is kept in place. This
|
|
# makes for quicker posts.
|
|
# When object_post_as_copy is set to true, a POST request will be transformed
|
|
# into a COPY request where source and destination objects are the same. This
|
|
# is the current default in Swift.
|
|
#
|
|
class swift::proxy::copy (
|
|
$object_post_as_copy = true
|
|
) {
|
|
|
|
include ::swift::deps
|
|
|
|
swift_proxy_config {
|
|
'filter:copy/use': value => 'egg:swift#copy';
|
|
'filter:copy/object_post_as_copy': value => $object_post_as_copy;
|
|
}
|
|
}
|