Browse code

start to cli exercise

Jesse Andrews authored on 2011/09/15 11:37:10
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,24 @@
0
+#!/usr/bin/env bash
1
+
2
+# **exercise.sh** - using the cloud can be fun
3
+
4
+# we will use the ``nova`` cli tool provided by the ``python-novaclient``
5
+# package
6
+
7
+# Settings/Options
8
+# ================
9
+
10
+HOST=${HOST:-localhost}
11
+export NOVA_PROJECT_ID=${TENANT:-admin}
12
+export NOVA_USERNAME=${USERNAME:-admin}
13
+export NOVA_API_KEY=${PASS:-secrete}
14
+
15
+# keystone is the authentication system.  We use the **auth** 2.0 protocol.
16
+# Upon successful authentication, we are return a token and catalog of 
17
+# endpoints (for openstack services)
18
+export NOVA_URL="http://$HOST:5000/v2.0/"
19
+export NOVA_VERSION=1.1
20
+
21
+export
22
+
23
+nova list