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