Commit Graph

12 Commits (6402d36af3db7cc556cca0dd6fa31e75a8e24013)

Author SHA1 Message Date
Brian Coca 6402d36af3 now using type=json which takes care of str/dict 8 years ago
Brian Coca df79ca6352 fixes and refactoring of s3_bucket
policy should now accept and handle correctly both data structures or JSON strings
removed unused tag_set var
refactored code to make conditions clearer
rebased to allow for ceph changes, left ceph update on todo list
8 years ago
Javier M. Mellid 2c1530b647 Imports should be near the top of the file
Prior to 2.1, imports of module_utils was actually a preprocessor-like
substitution. So importing at the bottom helped preserve line numbers when
debugging. We'll be moving these to the top of files as time goes on.

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
9 years ago
Javier M. Mellid 78b4829623 Adapt exception syntax to work under python3 in s3_bucket.py
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
9 years ago
Javier M. Mellid a87b2e38a0 Add Ceph RGW S3 compatibility
Ceph Object Gateway (Ceph RGW) is an object storage interface built on top of
librados to provide applications with a RESTful gateway to Ceph Storage
Clusters:

http://docs.ceph.com/docs/master/radosgw/

This patch adds the required bits to handle buckets with the RGW S3 RESTful API
properly.

It sticks to the AWS behaviour where possible while avoiding not yet
implemented features in the Ceph RGW API.

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
9 years ago
Ash Berlin d00d0d0846 Add missing urlparse import to s3_bucket (#2110)
This was triggered when S3_URL environment variable was set.
9 years ago
Ryan Sydnor a56fe04683 Use boto normalized location for bucket creation
If a bucket is being created in us-east-1, the module passed
'us-east-1' to boto's s3.create_bucket method rather than
Location.DEFAULT (an empty string). This caused boto to generate
invalid XML which AWS was unable to interpret.
9 years ago
Brian Coca 205115ea1f updated to use shared region docs from ec2 9 years ago
Toshio Kuratomi 6a3cf63351 correct documentation formatting 9 years ago
Brian Coca a9d5392b71 fixed option description 9 years ago
whiter 511d6a7ff5 Fixed tag comparison 10 years ago
Rob White 1934ea6f35 New module - s3_bucket 10 years ago