11 Commits

Author SHA1 Message Date
Takashi Kajinami
cbf5c60e80 Do not hard-code defaults of [filter:slo] parameters
... but use the default values defined in swift itself.

Change-Id: Ic140589cf76c8d8f0a82ba259b4940f565cabaa5
2021-12-20 10:10:12 +09:00
Takashi Kajinami
7017388604 Update default value of [filter:slo] max_manifest_size
Default value of [filter:slo] max_manifest_size was changed in swift[1]
but puppet-swift still hard-codes the old default.
This change updates the default value to use the consistent value.

[1] 11bf9e45884aa5122e76a97cf62062d7b0bdfe54

Change-Id: Iba68f63dcf5dc401cbbf2d396530a66157ad8fce
2021-12-20 08:10:00 +09:00
Takashi Kajinami
0ef85fafbb Deprecate the ineffective min_segment_size parameter
The [filter:slo] min_segment_size parameter was already removed from
swift[1]. This change deprecate the corresponding parameter so that
we can remove it in a future release.

Change-Id: Ibe4c1233a48ee38d3bd7649479e15bb29f03ed8b
2021-12-20 08:09:59 +09:00
Takashi Kajinami
ef9ff55131 Support more [filter:slo] parameters
Change-Id: I29e118af2ad9893ab1cc42a1d6befdfa07395a20
2021-12-20 08:09:35 +09:00
Tobias Urdin
e7d670b13a Fix rspec-puppet-facts testing
Moves all spec tests over to using rspec-puppet-facts
and runs the tests for all our supported operating systems.

Change-Id: Ie2d60acac835affaf46a5276c9755640a723bca4
2018-05-19 14:17:20 +02:00
Adam Vinsh
60ed2ee79c Replace proxy concat/template with ini provider
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
2016-10-06 10:29:04 -04:00
Sergii Golovatiuk
a94df7b02a Fix tests for concat 2.1.0
Depends-On: I8e3cd60fa50e04221aedf5c153c1ecb8a5bd97b5

Change-Id: I920479f9d5f0d94151c63a5fdc1445edf984a01a
Signed-off-by: Sergii Golovatiuk <sgolovatiuk@mirantis.com>
2016-05-23 11:57:56 +02:00
Emilien Macchi
b73516aff6 Stop calling ::concat::setup
::concat::setup is a private class deprecated as a public class [1].
This patch makes sure we use concat module the right way and avoid
a warning.

[1] https://github.com/puppetlabs/puppetlabs-concat/blob/master/manifests/setup.pp#L14

Change-Id: Ib7f72f696e8704f3f4d5cff6b06dbcd981d6b395
2016-01-03 13:23:28 -05:00
Sebastien Badia
f4cfe8e8e4 spec: updates for rspec-puppet 2.x and rspec 3.x
This patch aim to update our specs test in order to work with the
rspec-puppet release 2.0.0, in the mean time, we update rspec syntax
in order to be prepared for rspec 3.x move.

In details:
  * Use shared_examples "a Puppet::Error" for puppet::error tests
  * Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x)
  * Fix spec tests for rspec-puppet 2.0.0
  * Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0
  * Clean Gemfile (remove over-specificication of runtime deps of puppetlabs_spec_helper)
  * Remove un-used puppet-lint (name_containing_dash config)

Change-Id: I5488507176d4665895eef65ddb4b6f0fb4eda3e7
Card: https://trello.com/c/eHXc1Ryd/4-investigate-the-necessary-change-to-be-rspec-puppet-2-0-0-compliant
2015-03-24 15:22:16 +01:00
Michal Skalski
e6a225d79b Enlarging the scope of ssh module
Including only ssh::server::install class in init.pp give too small scope
and cause warnings about inability to look up ssh::server::ensure.

Closes-Bug: 1355873

Change-Id: I443c9f006b47c609e4a05da38b4a2124acbf886e
2014-12-03 11:11:18 +01:00
Xingchao Yu
69f677de0b Add swift::proxy::slo class
swift::proxy::slo class is used to configure proxy slo middleware.

Change-Id: Ic751d2e89de39478b55e3323ddf220610b1b7541
Implements: blueprint icehouse-proxyserver-middlewares
2014-02-10 23:07:24 +08:00