
Fix new lint errors detected when full of the voxpupili lint plugins are enabled. Change-Id: Ifb5b50d7ae23c3e69a70721598e2719dbafa14d5 Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
27 lines
668 B
Puppet
27 lines
668 B
Puppet
# == Class: swift::proxy::read_only
|
|
#
|
|
# Configure read_only middleware
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*read_only*]
|
|
# (optional) Turn on global read only.
|
|
# Defauls to $facts['os_service_default']
|
|
#
|
|
# [*allow_deletes*]
|
|
# (optional) Allow deletes.
|
|
# Defauls to $facts['os_service_default']
|
|
#
|
|
class swift::proxy::read_only (
|
|
$read_only = $facts['os_service_default'],
|
|
$allow_deletes = $facts['os_service_default']
|
|
) {
|
|
include swift::deps
|
|
|
|
swift_proxy_config {
|
|
'filter:read_only/use': value => 'egg:swift#read_only';
|
|
'filter:read_only/read_only': value => $read_only;
|
|
'filter:read_only/allow_deletes': value => $allow_deletes;
|
|
}
|
|
}
|