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:
parent
206add02a9
commit
ce3dd1991d
@ -72,10 +72,23 @@ if [ $RESULT -ne 0 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
cat <<-EOF
|
||||||
|
|
||||||
OpenStack Dashboard available: http://127.0.0.1/${DASHBOARD}
|
OpenStack Dashboard available: http://127.0.0.1/${DASHBOARD}
|
||||||
To access through Horizon, use the following user/password:
|
To access through Horizon, use the following user/password:
|
||||||
admin / a_big_secret
|
admin / a_big_secret
|
||||||
|
To use OpenStack through the CLI, run:
|
||||||
|
source ~/openrc
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user