Created
March 26, 2015 15:17
-
-
Save jhedden/411670b352b47e2c8b35 to your computer and use it in GitHub Desktop.
OSX Openstack CLI tools
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
# Install home brew from http://brew.sh/ | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install python | |
# Python and PIP brew locations | |
which python | |
# /usr/local/bin/python | |
which pip | |
# /usr/local/bin/pip | |
pip install python-novaclient | |
brew install pkg-config libffi | |
export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig/ | |
pip install cffi | |
pip install python-glanceclient | |
pip install python-neutronclient | |
# Download openrc file from the openstack dashboard | |
# https://<openstack url> > Projects > Access and Security > API Access > Download Openstack RC file | |
# Run this file, or add a bash function to your .bashrc or .bash_profile | |
# depending on what approach you took you'll need to source whatever file you used. .bashrc .bash_profile openrc.sh | |
source ~/.bashrc | |
# Test command line tools | |
nova list | |
glance image-list | |
keystone user-list | |
neutron net-list | |
# More information at http://docs.openstack.org/user-guide/content/ch_cli.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment