0868b32e79
Change-Id: I0335cf49c2ce55659c49325f2c0028f1af93705d
29 lines
746 B
Puppet
29 lines
746 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;
|
|
}
|
|
}
|