-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9d1174
commit 745d6aa
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#Author: Ahmad Musa | ||
|
||
echo "Updating your OS packages" | ||
sudo apt-get update -y | ||
echo "Installing/Updating your OS python-devel" | ||
sudo apt-get install python-dev -y || true | ||
sudo apt-get install python3-dev -y || true | ||
sudo apt-get install libpython3-dev -y || true | ||
sudo apt-get install libpython3.4-dev -y || true | ||
sudo apt-get install libpython3.5-dev -y || true | ||
echo "Adding stack user" | ||
sudo useradd -s /bin/bash -d /opt/stack -m stack | ||
sudo apt-get install sudo -y || true | ||
sudo bash -c 'echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers' | ||
echo "Switching to stack user" | ||
sudo su stack | ||
# you will be switched to stack user here | ||
echo "Configuring git and python virtualenv" | ||
sudo apt-get install git -y || true | ||
sudo apt-get install python-pip -y || true | ||
sudo pip install virtualenv | ||
|
||
echo "your OS is ready to clone the devstack" | ||
echo "execute the following command : git clone https://opendev.org/openstack/devstack " | ||
echo "then you need to follow devstack steps :) " | ||
echo "done" |