The parameter descriptions says the value should be a positive integer
(or 0). Validate the given value to reject invalid values such as
strings or even negative values.
Change-Id: Ia6e238f85b7eef5b8f7b65ca37481d77a48c378a
... instead of unless + test command, to leverage the built-in feature
and simplify the logic in our own modules.
Change-Id: I0d5e98fcfcada5637dd0c3cc60e503b73241f3fd
... so that users can use this wrapper with more flexible customization
about filesystems and mounts. Also, this introduces the new filesystem
type parameter so that this common implementation can be used when ext4
is used.
Change-Id: Ib60576fc593f36c36a0e0bd03611a568e21913e9
This fixes the inconsistent interfaces between swift::storage::ext4 and
swift::storage::xfs, so that users can use both implementations more
easily without looking into actual interfaces in detail.
Change-Id: I708e57d2904499613c85e720f75919483e80aaee
... in addition to uuid and device name, as a more static but more
flexible way to assign devices to mount points.
Change-Id: I92e3f5d09c071c48e8b51026a2cda2394cbe33cf
This introduces the config entries for object-relinker, which is a CLI
tool used to increase part power.
Change-Id: Ied52845c6b3b30a6aa6744c6a9c599bbd81b6e9e
This adds a few new log options for object-expirer and
container-reconciler so that users can set consistent logging options.
The default log level of container-reconciler is effectively changed
from local0 to local2, to use the consistent log facility in all
services.
Change-Id: If5c287d8fd1325b08705133756eece6e41cfdc5f
Currently, puppet-swift can only set log_name. However, it's possible
with swift to have each daemon log with a different name, making it
possible to have logging for each daemon in a separate file, which is
often a way more convenient for operators.
This patch sets a different log_name for each daemon if set to true.
The default behavior is left unchanged.
Change-Id: I27386f6ac00b2efcfa5fc4f5ed3b86efc49c17fc
This introduces support for the following these two options for various
services.
conn_timeout: connection timeout
node_timeout: request timeout
Change-Id: I318c8db8c564e86b33597d13e0b50da03aa9f16e
The strict_cors_mode option should be set independently from
the cors_allow_origin, for example in case when strict mode is
disabled.
Also the current description about the strict_cors_mode is completely
incorrect.
This fixes these problems, and also allows usage of an array value
for cors_allow_origin so that users can compose a value to be passed
to the parameter more easily.
NOTE:
The strict_cors_mode option defaults to true in swift, thus its default
is replaced by the os_service_default fact.
Closes-Bug: #2048840
Change-Id: I59317519e31349d0b0b7efafae3a0a8a44d81d37
The title of the package resource to manage dnspython is not python3-*
but python-*. Also the proxy-server service should be restarted when
the package is updated so that the updated version is loaded.
Change-Id: I3372c38dcbc7312395ddf643862da91b00262ad7
... which were added as part of deprecation of sha1 signatures[1].
[1] 2d063cd61f6915579840a41ac0248a26085e0245
Change-Id: I8a27cebecbf1c47b2aeb8c1f1f00b1f1c90011d1
... according to the following warning.
Using `stub` from rspec-mocks' old `:should` syntax without explicitly
enabling the syntax is deprecated. Use the new `:expect` syntax or
explicitly enable `:should` instead.
Change-Id: I45564a4bc3346037265a3363b3bd635b4c9f53e1
Some parameters accept only certain parameter types/values. This adds
validations in parameter input to return sensible errors to users.
Change-Id: Ie6c0cf7956c228fead74dcb59e94111402303a56
The chache middleware is now enabled by default in most of the services
but only container-reconciler disables it by default, though the sample
config container-reconciler config file in the swift repository enables
the middleware.
This updates the default value so that the default pipeline is
consistent among services, and is aligned with the sample files in
swift.
Change-Id: Ifcb4d241de14a9e0b7e3afb79e73b9a57acc9d9e