Skip to content

Instantly share code, notes, and snippets.

@jhedden
Created March 26, 2015 15:17
Show Gist options
  • Save jhedden/411670b352b47e2c8b35 to your computer and use it in GitHub Desktop.
Save jhedden/411670b352b47e2c8b35 to your computer and use it in GitHub Desktop.
OSX Openstack CLI tools
# 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