-
-
Save anonymous/f47b7e297f79d682e0f68cf80b5e11c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get -y update | |
# apt-get -y upgrade | |
apt-get -y install python-dev python-pip | |
pip install pytz | |
pip install python-openstackclient | |
pip install python-heatclient | |
# Creating a skeleton keystonerc under ~ubuntu | |
pushd /home/ubuntu | |
cat > keystonerc << EOF | |
unset OS_SERVICE_TOKEN | |
export OS_USERNAME= | |
export OS_PASSWORD= | |
export OS_AUTH_URL=http://[ip-address]:5000/v2.0 | |
export PS1="[\u@\h \W(keystone_\${OS_USERNAME})]\$ " | |
export OS_TENANT_NAME= | |
export OS_REGION_NAME=RegionOne | |
EOF | |
chown ubuntu:ubuntu keystonerc | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment