-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
15 lines (9 loc) · 881 Bytes
/
README
File metadata and controls
15 lines (9 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
These are some code examples for interacting with the OpenStack APIs using Ruby. Most of these are results experimenting with the NeCTAR research cloud (nectar.org.au).
These examples are based on http://docs.openstack.org/api/openstack-compute/programmer/content/index.html.
You will need to create a 'credentials.rb' file in the following format:
$PASSWORD = 'YOUR_PASSWORD' # From the Dashboard/credentials page (in the NeCTAR case it is NOT the password you use to login).
$USER = 'YOUR_USERNAME' # Just your regular username.
$TENANT_ID = 'YOUR_TENANT_ID' # This is a number that, I think, comes from the Nova database. You may need to contact your administrator for this number.
$TENANT_NAME = 'YOUR_TENANT_NAME' # This is the name of your OpenStack tenant. In the NeCTAR case it's probably something like 'pt-xx'.
You will also need the json gem:
bundle install json