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

21 commits

Author SHA1 Message Date
Joe Topjian
9b7be36feb Added multi-region support for OpenStack Image service 2012-12-21 12:54:53 -07:00
Sergio Rubio
8049ee0d0f [openstack|image] 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 now:

require 'fog'
conn = Fog::Image.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, internalURL
})

Defaults to adminURL to maintain backwards compatibility.
2012-12-21 18:27:56 +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
Nelvin Driz
0035231954 [openstack] Fix Failing Shindo Tests
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-10-02 14:09:02 +08:00
Nelvin Driz
7c72e5394f [openstack] Authentication Mocks
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-09-28 14:41:59 +08:00
Alvin Garcia
155b0c9157 [openstack|image] Added update_members function 2012-09-28 14:32:37 +08:00
James Herdman
97b16d08d2 Remove absolute path when requiring 2012-05-26 11:27:28 -04: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
Alvin Garcia
1129de27c9 [openstack|image] Added set_tenant 2012-04-30 10:35:02 +08:00
Nelvin Driz
9a0a5f2da2 [openstack|image] Update Image Service Authentication Options
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-04-30 10:35:01 +08:00
Nelvin Driz
92523f763a [openstack] Update mocks for login and identity request #get_user_by_id
Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-04-30 10:35:01 +08:00
Nelvin Driz
ae66ab45d7 [openstack] Update Authentication through X-Auth-Token 2012-04-30 10:35:01 +08:00
Nelvin Driz
a76c244eba [openstack] Wrong instance variables accessed for #credentials 2012-04-30 10:35:00 +08:00
Nelvin Driz
9bfdf11dcf [openstack|identity] Fix Identity Authentication Conditions on Endpoint
Detection
2012-04-30 10:35:00 +08:00
Nelvin Driz
4910768827 [openstack] Add Export of Credentials 2012-04-30 10:35:00 +08:00
Nelvin Driz
c643bd8e03 [openstack] Update Reinitialization Process of Existing Auth Token 2012-04-30 10:35:00 +08:00
Philip Mark Deazeta
df3c374e33 [openstack] Modify authentication process 2012-04-30 10:35:00 +08:00
Philip Mark Deazeta
74fe4885c9 [openstack|image] Added image module, model and request 2012-04-30 10:34:59 +08:00
Philip Mark Deazeta
8e5ac8d9ed [openstack|image] Added test for models and request 2012-04-30 10:34:59 +08:00
Philip Mark Deazeta
c122d622c0 [openstack|image] Added image service, model and request 2012-04-30 10:34:59 +08:00