Created
April 20, 2012 19:21
-
-
Save n1zyy/2431166 to your computer and use it in GitHub Desktop.
Deltacloud + OpenStack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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