The instructions in this article on how to 'source' the openrc.sh file are for Mac OS X and Linux only.
What is an openrc file?
An openrc file is a small bash script that sets environment variables so that OpenStack command line tools know how to communicate with DreamCompute.
How do I download my openrc file?
You can find your openrc file in the DreamCompute Dashboard.
- Navigate to (Compute > Access & Security).
- Click the 'API Access' tab.
- To the right, click the Download OpenStack RC File button.
How do I use my openrc file?
If you downloaded the openrcfile.sh file from the panel, it was downloaded into your computer's /Download directory. On a Mac it would be:
This file you downloaded is named something like dhc123456-openrc.sh. You can rename this to something like openrc.sh if you like.
[user@localhost]$ mv ~/Downloads/dhc-123456-openrc.sh ~/Downloads/openrc.sh
Use the source command to run this file. This example shows how to run it from a Mac's /Download directory:
[user@localhost]$ source ~/Downloads/openrc.sh
Your terminal will prompt you to enter a password. This is your DreamCompute Dashboard Panel password, the same one you use to log into the DreamCompute panel at (Panel > 'Cloud Services' > 'DreamCompute').
After entering the password, all necessary environmental variables should be set. You can now run a command line client like OpenStack-CLI.