Commit graph

10 commits

Author SHA1 Message Date
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>
2016-06-18 01:01:09 +02:00
Javier M. Mellid
78b4829623 Adapt exception syntax to work under python3 in s3_bucket.py
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
2016-06-18 01:01:06 +02:00
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>
2016-06-18 01:01:01 +02:00
Ash Berlin
d00d0d0846 Add missing urlparse import to s3_bucket (#2110)
This was triggered when S3_URL environment variable was set.
2016-05-10 08:00:13 -07:00
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.
2015-11-20 13:55:46 -05:00
Brian Coca
205115ea1f updated to use shared region docs from ec2 2015-10-07 23:20:27 -04:00
Toshio Kuratomi
6a3cf63351 correct documentation formatting 2015-09-05 08:55:34 -07:00
Brian Coca
a9d5392b71 fixed option description 2015-09-04 14:49:46 -04:00
whiter
511d6a7ff5 Fixed tag comparison 2015-07-17 15:50:55 +10:00
Rob White
1934ea6f35 New module - s3_bucket 2015-06-29 20:41:13 +10:00