Skip to content

Instantly share code, notes, and snippets.

@n1zyy n1zyy/gist:2431166

Created Apr 20, 2012
Embed
What would you like to do?
Deltacloud + OpenStack
# First, make sure you have openstack support...
# $ $ deltacloudd --drivers | grep openstack
# * openstack
#
# You may have to create one first...
# X-Deltacloud-Provider should be something like:
# http://virtblade12.example.com:8774/v1.1/
p = Provider.find_by_name 'openstack'
# See http://www.mariosandreou.com/deltacloud/2012/02/23/deltacloud-openstack_v2API-driver.html
opts = {:username => "username+tenantname",
:driver => "openstack",
:password => PASSWORD,
:provider => p.deltacloud_provider }
client = DeltaCloud.new(opts[:username], opts[:password], p.url)
cc = client.with_config(opts)
cc.images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.