Skip to content

Instantly share code, notes, and snippets.

@n1zyy
Created April 20, 2012 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n1zyy/2431166 to your computer and use it in GitHub Desktop.
Save n1zyy/2431166 to your computer and use it in GitHub Desktop.
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