Step 3 - setting environment variables

To avoid providing credentials every time when you run an OpenStack command, create a file containing the environment variables that can be loaded at any time. To do that, execute the following command:

cat >> ~/admin-rc <<EOF
export OS_USERNAME=admin
export OS_PASSWORD=bootcamp
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_AUTH_URL=http://controller.hellovinoth.com:35357/v3
export OS_IDENTITY_API_VERSION=3
EOF  

Replace bootcamp with the password used in the keystone-manage bootstrap command in the Step 1 - Installing and configure components section.

Use the following source command to load the environment variables from the file. Then verify the configuration by executing the following commands:

source ~/admin-rc
openstack token issue
openstack user list  

In response to the preceding command, you will see the output similar to the one here:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.48.181