Authenticate with clouds.yaml to run openstackCLI commands

Authenticate with the clouds.yaml file to run openstack CLI commands.

Before you begin

  • The administrator has created a project for you and they have provided you with a clouds.yaml file for you to access the cloud.
  • You have installed the python-openstackclient package.

Procedure

  1. Use the --os-cloud option with each command:
    $ openstack flavor list --os-cloud <cloud_name>

    where:

    <cloud_name>
    Specifies the name of the cloud detailed in your clouds.yaml file.
  2. Optional: If you access more than one cloud, create an environment variable for each cloud name in your bashrc file:
    `export OS_CLOUD1=<cloud_name>`