Skip to content

Instantly share code, notes, and snippets.

Created December 20, 2016 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/f47b7e297f79d682e0f68cf80b5e11c9 to your computer and use it in GitHub Desktop.
Save anonymous/f47b7e297f79d682e0f68cf80b5e11c9 to your computer and use it in GitHub Desktop.
#!/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