You can make the OpenStack command line interface (CLI) accessible through a proxy server.
To provide access to the OpenStack CLI through a proxy server, you must first set the environment variable for the proxy server in the OpenStack RC file.
For example, if http://proxy-server.samplecorp.com is the URL of the proxy server, and 3128 is the port number, you can edit the OpenStack RC file to specify the URL and port number with the export command as follows.
If the proxy server requires a username and password, then add the username and password to the URL.
In general, the export command must have the following format.
<port> with the appropriate values from your configuration.
If one or more OpenStack services can be accessed locally, you can specify the exception with the export command in the OpenStack RC file. For instance, you might want to access OpenStack Glance locally. In this case, you can add the following command to the OpenStack RC file, to access Glance locally.
In the aforementioned command, 127.0.0.1 is your localhost IP and the glance IP address is gathered via the openstack endpoint list command.
<glance api server ip address>.
The OpenStack RC file can be sourced on the machine where a user wants to run the OpenStack CLI so that the OpenStack CLI is available through the proxy server.
Thank you for your feedback! What did you like about this article?
Thank you for your feedback! How could this article be improved?
Thank you for your feedback!