Skip to content

Instantly share code, notes, and snippets.

@fjourdren
Created January 30, 2018 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fjourdren/53637980e95b6779881e331cb3b6488b to your computer and use it in GitHub Desktop.
Save fjourdren/53637980e95b6779881e331cb3b6488b to your computer and use it in GitHub Desktop.
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