Skip to content

Instantly share code, notes, and snippets.

@elight
Last active August 29, 2015 13:57
Show Gist options
  • Save elight/9665804 to your computer and use it in GitHub Desktop.
Save elight/9665804 to your computer and use it in GitHub Desktop.
module Fog
module Openstack
module Rackspace
class Identity < Fog::Service
US_ENDPOINT = 'https://identity.api.rackspacecloud.com/v2.0'
UK_ENDPOINT = 'https://lon.identity.api.rackspacecloud.com/v2.0'
requires :rackspace_username, :rackspace_api_key
recognizes :rackspace_auth_url, :rackspace_region
def initialize(options = {})
options[:authenticator] ||= RackspaceAuthenticator
@osc_identity = Fog::OpenStackCommon::Identity.new(options)
end
def method_missing(method, *args)
@osc_identity.send(method, *args)
end
end
end
end
end
@mwhagedorn
Copy link

question... how where you thinking of token key mapping from :rackspace -> openstack. hp etc? Dont you need a place to do that?

@wchrisjohnson
Copy link

Have you run this code at all, or was this purely a design effort based on what you know the code can/should do?

@mwhagedorn
Copy link

I am gonna try and work these ideas into my existing work at fog-openstack-tng / fog_hp_tng. I have working tests and everything so it should be somewhat comprehensive. As comprehensive as a spike can be that is

see fog/fog-openstack-hp#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment