418 Commits

Author SHA1 Message Date
Gael Chamoulaud
54fdb84742 Fix fixtures.yml for puppetlab/concat
Change-Id: Ieedfc17290aab8444f4e825203d6c983c237c4e5
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2014-11-17 19:02:44 +01:00
Jenkins
2193831dd7 Merge "Fix s3_token filter configuration for swift-proxy" 2014-11-02 17:35:27 +00:00
Jenkins
7b30dbb397 Merge "Allow to customize log_name for services" 2014-10-24 14:48:07 +00:00
Sebastien Badia
ac6c4dfb59 Switch to metadata.json for Puppet forge releases
Since puppet 3.x, Puppet Labs Forge accept only the metadata.json file
for module description (Modulefile is now deprecated).

This patch :
 - convert the Modulefile to metadata.json.
 - bump major version to 5 (for juno), and deps.
 - switch to stackforge namespace.
 - relax pe version_requirement to 3.x.

Change-Id: Id33056d659454b3dbc1921e37978993ca46c5217
2014-10-22 15:52:00 +02:00
Aleksandr Didenko
2dea09fed5 Fix s3_token filter configuration for swift-proxy
Since Juno s3_token middleware is a part of keystoneclient, not
keystone.

Change-Id: I97da480fcf5ce62da99c31481b181b8b61375db5
Closes-bug: 1384149
2014-10-22 13:02:39 +03:00
Aleksandr Didenko
a2cae16d31 Allow to customize log_name for services
This patch allows us to customize log_name for:
- proxy-server
- container-server
- object-server
- account-server

Which may be usefull for log collecting/parsing. Defaults remain
as they were before the patch.

Change-Id: I173652ec5bbe8d4382e10db4510d91aebceacab5
2014-10-14 21:14:37 +03:00
Colleen Murphy
1591f769ba Update stdlib dependency to 4.x
puppetlabs/stdlib 4.x is backwards compatible with 3.x and still tested
on Puppet 2.7. Updating stdlib to 4.x allows modules to use newer
functions without breaking older functionality.

Change-Id: I74e4d3a7bc11cd194fc33a1bbb70f07836ea5d32
2014-09-22 15:45:41 -07:00
Mathieu Gagné
3ea0044036 Make Modulefile summary and description consistent
Improve consistency of Modulefile across puppet modules for OpenStack.

Change-Id: I3b9220bc97d25c826b60936fad6ece50f08e3181
2014-07-03 17:07:55 -04:00
Clayton O'Neill
78da999c5a Normalize Gemfile & pin tests to rspec < 2.99
Pin to rspec < 2.99 until rspec-puppet officially supports rspec 3.x.
This is to avoid warnings due to deprecated matchers in the
rspec-puppet gem.

This change is also intended to normalize the Gemfile for all stackforge
puppet modules.  This should facilitate pinning gem versions when
releasing new stable branches, since the same diff can be used for all
repos.

Change-Id: Ibc857d800943bc256f54bbe9faef0bce080a4fc0
Partial-Bug: #1326034
2014-06-20 09:16:20 -04:00
Lukas Bezdicka
c6e0dff2b4 Fix path for restorecon
On RHEL6 restorecon is in /sbin and on newer RHEL based systems it is in /usr/sbin

Closes-Bug: rhbz#1109079
Change-Id: I5662c4337ff23310c12a86834c51c6a3ec151a1f
2014-06-13 15:52:23 +02:00
David Moreau Simard
6d35b1e8cf Fix boolean that always returned true for selinux fact
Facter returns 'false' if selinux is not enabled.
Puppet evaluates it as true as it is not empty.

Change-Id: I2f1d9a348fd981292aeef177b57f08e1b7ef2732
Closes-bug: #1328547
2014-06-10 12:10:45 -04:00
Jenkins
a2c2215146 Merge "Add swift::proxy::crossdomain class" 2014-06-05 16:13:40 +00:00
Jenkins
729c5f6e17 Merge "Include swift::params in swift::client" 2014-06-04 09:04:22 +00:00
Lukas Bezdicka
9d592f61e4 Add swift::proxy::crossdomain class
Change-Id: Ie7e5dfc3732ad552063293f16aa04a791bc5add8
swift::proxy::crossdomain class is used to configure crossdomain middleware.
2014-06-03 16:00:01 +02:00
Jenkins
1b61c7a578 Merge "Bump stdlib dependency from >=2.3.0 to >=3.2.0" 2014-06-03 09:31:21 +00:00
Jenkins
9cc4468cad Merge "Improve readability of swift::xfs" 2014-06-03 09:30:07 +00:00
Yanis Guenane
281e111e58 Improve readability of swift::xfs
Improve readability of swift::xfs using ensure_packages
from the stdlib.

Change-Id: I9550c6e9415e49b5363e21c73c935390c3a635e3
2014-06-02 10:27:25 -04:00
Yanis Guenane
c299955a67 Bump stdlib dependency from >=2.3.0 to >=3.2.0
Most puppet components are already using >=3.2.0, this commit will
standardize the requirements.

Change-Id: Iad8ece12f7e05717731f0f071644ac4addfb4ce9
2014-06-02 10:03:13 -04:00
Yanis Guenane
f7d1385d69 Avoid duplication error when ringserver and storage are on the same node
This commit aims to avoid duplication error when the ringserver and the storage node
are on the same machine. For example when using loopback devices.

Change-Id: Ic09af5d3a706d1a59c3fee7689b373d0a4de4e80
2014-05-30 08:36:12 -04:00
David Moreau Simard
2c6261251c Include swift::params in swift::client
Otherwise swift::client can't fetch the name of the package by itself
if swift::params doesn't happen to be in the catalog.

Change-Id: I3d15d0ce68ca084eb4573764b05e8723befbd7e7
2014-05-28 17:53:43 -04:00
Jenkins
29ade00640 Merge "Add dependency so swift config creation succeeds" 2014-05-28 13:50:32 +00:00
Jenkins
612dc058ce Merge "Fix swift quota filter names" 2014-05-28 13:01:21 +00:00
Jenkins
7b48071297 Merge "Restore selinux context on swift mount" 2014-05-28 12:35:44 +00:00
Chris Ricker
a20a178c42 Fix swift quota filter names
Align account_quotas and container_quotas filter names to prevent
swift-proxy from tracing back when quotas are enabled.

Change-Id: I835b05fa5d9eb1fb00cc8309d78bafcd4969d0d3
Closes-Bug: #1323761
2014-05-27 13:17:55 -04:00
Chris Ricker
7847848f6a Add dependency so swift config creation succeeds
Introduce dependencies so swift config files are not created until
the swift packages are installed to avoid failures due to missing
directories, users, and groups supplied by the swift packages.

Change-Id: Ifbd7e9c4f0ecdef03c5afe8459216ddaeb849bb7
Closes-Bug: #1314772
2014-05-23 16:14:18 -04:00
Jenkins
9226b03b06 Merge "Add swift-ring-builder multi region support" 2014-05-21 13:35:16 +00:00
Lukas Bezdicka
9ca38e7e44 Restore selinux context on swift mount
Mounting devices without specifying or restoring context ends up with
default context file_t assigned for swift paths. On selinux systems it
is nice to at least try to preserve predefined contexts on paths.

Change-Id: I9b68c04cb0d4ee72c074e514db7141c3c077c978
Closes-Bug: rhbz#1095503
Closes-Bug: #1320853
2014-05-19 16:54:21 +02:00
Yanis Guenane
16e4ba1018 Implement rspec function it_raises
On some puppet modules, a it_raises helper is provided. This commit
implements it for puppet-swift.

Change-Id: Id8724823b912f201cc137e23f991d8e05acdcbcc
2014-05-15 14:51:16 -04:00
David Moreau Simard
bb3007615f Add swift-ring-builder multi region support
Since Swift 1.8.0, there is the region layer of topology above zones.
swift-ring-builder supports this natively and this commit allows a user to
specify a region when creating devices.
We maintain backwards compatibility by defaulting to region '1'.
The coverage of the ring builder spec tests were also improved as part of
this commit.

Change-Id: I67cbe6b87c84778f71df59cf00f2c5175342bc1b
2014-05-09 15:45:28 -04:00
Chris Hoge
9874edd265 4.0.0 - 2013.1.0 - Icehouse Release (Swift 1.13.1)
Updated Modulefile and README.md for 4.0.0 release.

Change-Id: I114fc54e0fe7a4e1b19f5ea1e6c1eb2dd44a0ffd
2014-05-01 12:07:19 -07:00
Jenkins
bcff463996 Merge "Parameterize the endpoint prefix" 2014-04-17 12:53:23 +00:00
David Moreau Simard
ed3ba7f889 Add read_affinity, write_affinity support to proxy
This optionally provides the ability to configure read and write affinity
in proxy-server.conf.
Documentation: http://docs.openstack.org/developer/swift/admin_guide.html

Change-Id: Iea5aa6f73ddbdef119c5e70b29820c43640f0dac
2014-04-16 10:23:47 -04:00
Matt Fischer
e4e0a73468 Parameterize the endpoint prefix
The endpoint prefix for keystone endpoints is now configurable (defaults
to AUTH). This will allow for easier integration with SwiftStack
which requires that the endpoint prefix not be AUTH.

Change-Id: I102008aad86c0e35e3020961119a56c81da973f3
2014-04-08 10:07:54 -06:00
Jenkins
003838325a Merge "Updated to match semver and release notes." 2014-03-28 03:59:56 +00:00
Jenkins
8395f06064 Merge "Fix spurious warning in pipeline check" 2014-03-26 20:52:42 +00:00
Chris Hoge
27579e7233 Fixed gate by Updating Gemfile to pin Rake to 10.1.1
The latest Rake update requires Ruby >= 1.9. Bundler in the
current gate uses 1.8.x. This update fixes the gate by pinning
Rake to the last known working version.

Change-Id: I8f798a71246c39deb91610bad1d0261aaa485a75
2014-03-24 15:39:12 -07:00
Chris Hoge
38603d91fb Updated to match semver and release notes.
Before this update the Modulefile was not following semver in
relation to stable/havana, and the README files were not in sync.
This update introduces proper semver and consistency.

Change-Id: I65fda078f20eb8d41b260c4550ac3c262cca8267
2014-03-21 16:25:06 -07:00
Jenkins
23119310ac Merge "Add proxyserver gatekeeper middleware" 2014-03-14 21:04:33 +00:00
Jenkins
e9b69499c9 Merge "Add swift::proxy::slo class" 2014-03-14 21:01:23 +00:00
Jenkins
7715e64770 Merge "Add client_package_ensure parameter and swift::client class" 2014-03-14 20:50:56 +00:00
Mark T. Voelker
01a3a40bcc Fix spurious warning in pipeline check
The storage::server class includes a bit of logic that checks
the pipeline and warns if ${type}-server isn't included.
However, the check has a logic flaw such that if $pipeline is an
array and contains ${type}-server, the warning is triggered
anyway.  This patch corrects the bad logic so that the warning
isn't triggered spuriously.

Change-Id: I7f81598f2f7910a2175fe772c9d82b2a1067826c
Closes-Bug: #1289187
2014-03-07 02:53:02 -05:00
Sebastien Badia
21f9eff35c Add client_package_ensure parameter and swift::client class
In the actual state of the manifest we can only setup package_ensure to
absent|present|latest. This commit allow end users to pin swift* and
swift-client to a specific version. (note that swift* and
python-swiftclient version are not the same).

A new class (swift::client) manage now client packages, and we keep the
retro-compatibility of commit 020b7723cbbe75fbcae89514a1e1882ae807fb27.

Change-Id: I9bcc5a0f9d0a93a812fb574c4571fb9584077e4a
2014-03-06 02:09:52 +01:00
Sebastien Badia
4c86d39972 Fix test files (address is now removed)
The new parameter is now public_address.
refs: f8fbd8addfe07547666666a8cb2f68f5b1d8aa81

Change-Id: I114d9305ea91baf399ebe7bc09c95c50741fb5b1
2014-03-06 01:42:58 +01:00
Chris Ricker
2cce66ef44 swift classes need to include swift::params
Some of the swift classes use parameterized settings defined in
swift::params but do not include the swift::params class.

Change-Id: I7704bf42db4554566d27b510bbbedb8afe0fe7b3
Closes-Bug: #1288252
2014-03-05 08:58:10 -08:00
Jenkins
162e8f4ceb Merge "Add ability to disable endpoint configuration" 2014-03-04 11:01:39 +00:00
Francesco Vollero
d0caf58916 Support for allow_versions in swift containers
The previous patch (37493) was just implementing the feature partially

Change-Id: I0adc55a22161fa3768d941e5ae996cc47048efa5
2014-02-25 17:39:12 +01:00
Mark T. Voelker
edd25ce6b3 Fix deprecation warnings in inline templates
The puppet-swift modules emit deprecation warnings of the form:

Warning: Variable access via 'pipeline' is deprecated. Use
  '@pipeline' instead. template[inline]:2
   (at (erb):2:in `result')

These are due to missing @ signs in inline ERB templates in
storage/server.pp and proxy.pp.  This patch fixes them.

Change-Id: I3745cfd86c4332f00bc10a0999088691b3833147
Closes-Bug: #1282717
2014-02-20 13:29:22 -05:00
Jenkins
d8430ea6ad Merge "Add support for middlewares with hyphens" 2014-02-17 16:21:15 +00:00
Mathieu Gagné
eb5eb1f961 Add ability to disable endpoint configuration
It is possible to disable endpoint configuration by setting
the value of the configure_endpoint and configure_s3_endpoint
parameters to false.

The default value is true, preserving default behavior.

Change-Id: I0f9afb78c181573a30f93dc4f862f86baa3efe31
Closes-bug: #1279071
2014-02-12 10:45:16 -05:00
Jenkins
d649bac32d Merge "Cleanup, Improve coverage of swift::keystone::auth spec tests" 2014-02-12 08:24:22 +00:00