From b019151c6e992e7ac8087a83d142fc77c9a53495 Mon Sep 17 00:00:00 2001 From: Jesse Andrews Date: Wed, 14 Sep 2011 19:37:10 -0700 Subject: [PATCH] start to cli exercise --- exercise.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 exercise.sh diff --git a/exercise.sh b/exercise.sh new file mode 100755 index 0000000000..8dc5222a6a --- /dev/null +++ b/exercise.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +# **exercise.sh** - using the cloud can be fun + +# we will use the ``nova`` cli tool provided by the ``python-novaclient`` +# package + +# Settings/Options +# ================ + +HOST=${HOST:-localhost} +export NOVA_PROJECT_ID=${TENANT:-admin} +export NOVA_USERNAME=${USERNAME:-admin} +export NOVA_API_KEY=${PASS:-secrete} + +# keystone is the authentication system. We use the **auth** 2.0 protocol. +# Upon successful authentication, we are return a token and catalog of +# endpoints (for openstack services) +export NOVA_URL="http://$HOST:5000/v2.0/" +export NOVA_VERSION=1.1 + +export + +nova list