Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Easy devstack intall
#!/bin/bash
apt-get update
apt -y dist-upgrade
apt install -y sudo vim vim-nox lynx zip binutils wget openssl ssl-cert ssh
apt install -y bridge-utils git python-pip
pip install --upgrade pip
pip install -U os-testr
groupadd stack
useradd -g stack -s /bin/bash -d /home/stack -m stack
echo "stack ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/50_stack_sh
chmod 440 /etc/sudoers.d/50_stack_sh
cd /home/stack
git clone https://git.openstack.org/openstack-dev/devstack
cd devstack
git checkout stable/ocata
echo '[[local|localrc]]' > local.conf
echo 'ADMIN_PASSWORD=stack' >> local.conf
echo 'DATABASE_PASSWORD=stack' >> local.conf
echo 'RABBIT_PASSWORD=stack' >> local.conf
echo 'SERVICE_PASSWORD=stack' >> local.conf
echo 'GIT_BASE=https://git.openstack.org' >> local.conf
echo 'USE_SCREEN=FALSE' >> local.conf
echo 'PIP_UPGRADE=True' >> local.conf
chown -R stack.stack /home/stack/devstack
su -l stack -c "cd devstack; ./stack.sh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment