Configuring your Linux or macOS environment
The OpenStack tools are configured by setting environment variables in your shell or desktop.
Getting ready
Ensure that you have the OpenStack clients installed as described in the first recipe, Introduction – using OpenStack, in this chapter.
How to do it…
Configuration of your command-line environment is achieved by setting environment variables; however, it is easier and more convenient to place these variables in a file that we can later load into our environment. During the installation, OpenStack-Ansible creates a plain text file called openrc
and places this in the /root
directory of all the containers created. This file is a great starting point for configuring the environment as it has all the required elements needed to operate your CLI environment.
On your own client, for example, Linux or Mac-based, choose a working directory, such as $HOME/openstack
, and create a file called openrc
(or a meaningful name of your choice) with the following...