Last active
August 29, 2015 14:05
-
-
Save PHLAK/010df6db3bfbac3e2432 to your computer and use it in GitHub Desktop.
Quick script for installing OpenStack python clients.
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
#!/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