... 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
... 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
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
The tls_enabled option defaults to false, so we don't have to make
the class parameter default to false explicitly but can use the service
default.
Change-Id: I023855904460280e86073c0301e420255b25e6f2
This fixes some of the logics which do not actually enable unit tests,
to keep appropriate test coverage.
Change-Id: I02d7f2a21d0b2a3c09f622caf11041a6dd9d0f83
This fixes some of the logics which do not actually enable unit tests,
to keep appropriate test coverage.
Change-Id: I27ffddfe37d6801df7b4b2caf7becd7d92773ddc
The log_headers option defaults to no (which is effectively same as
False), so we don't have to explicitly set this option.
Change-Id: I0463331018dd1ff844caf0bc54f9abfe4627420e
The [DEFAULT] log_udp_port option defaults to syslog udp port in case
it's not set, so users don't have to set this option explicitly.
Change-Id: I274271fd5bbcbac830d119797a0895f8651ba9df
The swiftclient package is not required by swift itself, thus we don't
have to install it along with the other swift packages.
Change-Id: If241e635109f5970e725d7776026f0d7b4951024
Recent update in rspec-puppet removed some of the config interfaces for
old puppet versions[1]. This drops usage of these interfaces to resolve
the following error in unit tests.
```
An error occurred while loading ./spec/unit/provider/manila_spec.rb.
Failure/Error: c.manifest_dir = File.join(fixture_path, 'manifests')
NoMethodError:
undefined method `manifest_dir='...
```
This also removes explicit setting of mock module. The definition is
no longer required since we bumped puppetlabs_spec_helper to v 5.0.0.
[1] 316d95923c
Change-Id: I2f104030c57f2680fef70afa72dc332be8d36885
Currently we restart all swift services regardless of the config file
being updated. This is very redundant, because some config files affect
only specific services (eg. account-server.conf is used only by
account-* daemons).
This introduces new "sub" tags such as swift-account-service and limit
the services being restarted.
Change-Id: Idfa09b63d291b0f71686554cb7c7b0597cb8842c
This change refactors how the dependent libraries are loaded during
unit tests, and load the libraries in the base spec_helper to avoid
duplicate and redundant implementations.
Change-Id: I1ea3c36b077b6c58dea2f4db73e1442610b4ffbc
This introduces the hosts_allow parameter and the hosts_deny parameter
so that users can limit access to the rsync server.
Change-Id: I2bf7240f8c52aef8b4dd74ce5af12056377ab227