Add openrc file creation to AIO script

This patch will add the creation of an openrc file
containing the credentials a user needs to use their
OpenStack deployment to the end of the AIO script.

Change-Id: I1353d9e1a3b026f0c6d56d6cfd2f0581866bed90
This commit is contained in:
Nate Potter 2015-11-10 23:05:35 +00:00
parent 206add02a9
commit ce3dd1991d

View File

@ -72,10 +72,23 @@ if [ $RESULT -ne 0 ]; then
exit 1
fi
cat > ~/openrc <<EOF
export OS_PROJECT_DOMAIN_ID=default
export OS_USER_DOMAIN_ID=default
export OS_PROJECT_NAME=openstack
export OS_TENANT_NAME=openstack
export OS_USERNAME=admin
export OS_PASSWORD=a_big_secret
export OS_AUTH_URL=http://127.0.0.1:35357/v3
export OS_IDENTITY_API_VERSION=3
EOF
cat <<-EOF
OpenStack Dashboard available: http://127.0.0.1/${DASHBOARD}
To access through Horizon, use the following user/password:
admin / a_big_secret
To use OpenStack through the CLI, run:
source ~/openrc
EOF