Skip to content

Instantly share code, notes, and snippets.

@PHLAK
Last active August 29, 2015 14:05
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 PHLAK/010df6db3bfbac3e2432 to your computer and use it in GitHub Desktop.
Save PHLAK/010df6db3bfbac3e2432 to your computer and use it in GitHub Desktop.
Quick script for installing OpenStack python clients.
#!/usr/bin/env bash
## Require root privileges
if [[ "$(whoami)" != "root" ]]; then
echo "ERROR: You must be root to run this script"
exit 1
fi
## Install python-pip if missing
if [[ ! $(dpkg -l python-pip) ]]; then
apt-get -y install python-pip
fi
## Define Open Stack clients
clients="ceilometer cinder glance heat keystone neutron nova swift trove"
## Install all the things
for client in $clients; do
pip install python-${client}client
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment