Fog backend for provisioning Ceph Radosgw - the Swift and S3 compatible REST API for Ceph. Currently, the gem only supports the S3 API, not Swift.
Based on the Riak CS backend.
Add this line to your application's Gemfile:
gem 'fog-radosgw'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fog-radosgw
Example:
require 'fog/radosgw'
provision_client = Fog::Radosgw::Provisioning.new(
host: 'objects.example.com',
radosgw_access_key_id: 'CHIA1GEE0EIJ9OHSAIK6',
radosgw_secret_access_key: 'IFooJ7airaebaele6baihaiw2fequuto9Foh7Sei'
)
response = provision_client.create_user('fog', 'Fog User', 'fog@example.com')
userkey = response.body['keys'][0]['access_key']
usersecret = response.body['keys'][0]['secret_key']
Mock tests:
bundle exec rake mock[radosgw]
Live tests:
bundle exec rake live[radosgw]
To run live tests, you have to place credentials in tests/.fog
, e.g.:
default:
host: objects.example.com
radosgw_access_key_id: CHIA1GEE0EIJ9OHSAIK6
radosgw_secret_access_key: IFooJ7airaebaele6baihaiw2fequuto9Foh7Sei
Please refer to the CONTRIBUTING.md page for the main Fog project.
Please refer to LICENSE.md.