Last active
February 1, 2020 00:42
-
-
Save johnsom/d005497fe9160c204fd4e4e197cb31be to your computer and use it in GitHub Desktop.
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
sudo apt-get update | |
sudo apt-get dist-upgrade | |
<reboot> | |
mkdir .ssh | |
chmod 700 .ssh | |
vi .ssh/authorized_keys # Add your SSH key | |
chmod 700 .ssh/authorized_keys | |
sudo update-alternatives --config editor # Optional if you don't like nano | |
echo "michjohn ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/michjohn | |
sudo apt-get install gcc make git python-dev libffi-dev libssl-dev libjpeg-dev cifs-utils open-vm-tools jq python-yaml python3-dev python-pip | |
# wget https://bootstrap.pypa.io/get-pip.py | |
# python get-pip.py | |
git clone https://github.com/openstack-dev/devstack.git | |
vi .bashrc | |
---- | |
PROMPT_DIRTRIM=2 | |
export WORKON_HOME=~/.venvs | |
source /usr/local/bin/virtualenvwrapper.sh | |
---- | |
sudo bash | |
pip install virtualenv | |
pip install virtualenvwrapper | |
cd devstack/tools | |
./create-stack-user.sh | |
cd ../.. | |
mv devstack /opt/stack | |
chown -R stack.stack /opt/stack/devstack | |
exit | |
sudo su - stack # become the stack user devstack runs under | |
cd devstack | |
vi localrc # Create your localrc file | |
./stack | |
To get an admin token for the CLI: | |
cd /opt/stack/devstack | |
source openrc admin admin | |
openstack loadbalancer list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment