1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
Commit graph

16 commits

Author SHA1 Message Date
Erik Michaels-Ober
f2bd2404d1 Revert "Updated gem spec to require json rather than multi_json"
This reverts commits: 66638b25d7,
3f0314dbd1, and
18ce4b7eca.

Since google-api-client was added as a dependency in afa9b025e9,
multi_json is a de facto dependency of fog, so this is a needless layer.
If #1034 is still an issue, I'd be happy to ship a version of multi_json
that requires rubygems >= 1.3.5.
2013-05-06 04:05:36 -07:00
Dan Prince
07c4d64195 Merge pull request #1693 from amerine/remove_openstack_cache_busting
Remove the OpenStack API cache busting.
2013-05-03 07:11:45 -07:00
Philip Mark M. Deazeta
3147f9b36b [openstack|volume] Added quota requests for Cinder 2013-04-12 18:10:01 +08:00
Kyle Rames
66638b25d7 Updated gem spec to require json rather than multi_json; Fog::JSON will attempt to load and use multi_json first and then fallback to require json; removed hard coded references to multi_json 2013-04-03 08:42:45 -05:00
Mark Turner
ed70672110 Remove the OpenStack API cache busting.
Not sure why this was ever here, and I cannot find a reason to continuously bust
the Nova request caching in the wsgi request handler. It does not help
performance, and makes attempts at ANY caching of responses to a Fog request
annoying.
2013-03-23 22:54:58 -07:00
Sergio Rubio
df1bb783e0 [openstack|volume] remove extra comma 2013-01-28 11:25:03 +01:00
Sergio Rubio
940b54e456 [openstack|volume] Configurable :openstack_endpoint_type
:openstack_endpoint_type is missing as a recognized parameter. This
patch fixes that, and allows the :openstack_endpoint_type to be
configurable instead of hardcoding the value to 'adminURL'

That is, you can create the connection to the service as follows:

require 'fog'

conn = Fog::Volume.new({
  :provider => 'OpenStack',
  :openstack_api_key => ENV['OS_PASSWORD'],
  :openstack_username => ENV["OS_USERNAME"],
  :openstack_auth_url => ENV["OS_AUTH_URL"]
  :openstack_tenant => ENV["OS_TENANT_NAME"],
  :openstack_endpoint_type => 'publicURL', # publicURL, adminURL, etc
})

Defaults to adminURL to maintain backwards compatibility.
2013-01-24 11:23:33 +01:00
Dan Prince
ba26129001 OpenStack auth updates to select by service name.
This patch updates the OpenStack auth implementation so that
it supports selecting API service by both 'name' and 'type'.

Previously the implementation was confusing because it
used a config param called :openstack_service_name to
select the service 'type' from the catalog. This patch
swaps it so that :openstack_service_name actually selects
by 'name'.

The previous logic to select service by type ('compute' for example)
has been preserved in a new :openstack_service_type parameter.
This option is used just as it was before for backwards compatability.

This change is potentially breaking for anyone previously using
:openstack_service_name (which I don't think is that common but is
possible). As such we should probably make a release note saying
that previous users of :openstack_service_name should migrate to
use :openstack_service_type instead.
2012-12-10 07:55:54 -05:00
Philip Mark M. Deazeta
a9fb65985c [openstack] Make use of the unscoped token for reauthentication 2012-11-26 17:23:13 +08:00
Dan Prince
794f1159a2 Merge pull request #1142 from grkvlt/accept-headers-openstack
Add Accept header with application/json media type to OpenStack requests
2012-11-13 12:06:24 -08:00
Nelvin Driz
7c72e5394f [openstack] Authentication Mocks
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-09-28 14:41:59 +08:00
Andrew Donald Kennedy
2d4f0fa0db [openstack] Add Accept header with application/json media type to requests 2012-09-12 16:19:21 +03:00
James Herdman
97b16d08d2 Remove absolute path when requiring 2012-05-26 11:27:28 -04:00
Philip Mark M. Deazeta
e4cf9e3db9 [openstack|volume] Added volume model 2012-05-14 14:46:36 +08:00
Nelvin Driz
7b46964770 [openstack] Make current_user and current_token accessible to services
- This is for users with no permission to access keystone admin API

Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-04-30 10:35:03 +08:00
Philip Mark M. Deazeta
c138c0fcae [openstack|volume] Added volume service requests 2012-04-30 10:35:02 +08:00