Run System Update/Upgrade
Once the system is up, you can update the system package repos;
sudo apt update -y
sudo apt upgrade -y && sudo systemctl reboot -i
Create an Optional Deployment User
To deploy OpenStack using DevStack, you need to optionally have a standard
user account, with passwordless sudo rights on your system.
To create a user account, run the command below;
sudo useradd -m -s /bin/bash stack
Give the user passwordless sudo rights;
sudo nano /etc/sudoers.d/stack
Enter the line below
stack ALL = NOPASSWD: ALL
Save and exit the file.
Clone DevStack Github Repository
Switch to deployment user created above and clone the DevStack Github
repository which contains a script that installs OpenStack and templates for
configuration files;
sudo -u cloud-admin -i
git clone https://opendev.org/openstack/devstack
Configure DevStack for OpenStack Deployment
To begin with, you need to create to define/create passwords for some
OpenStack services such Horizon, database, RabbitMQ and services
password. These passwords need to be defined on the local.conf file under
the root directory of the DevStack repository. If you do not define these
passwords, you will be prompted by the installer to enter them during the
installation of OpenStack.
Thus, navigate to the devstack Github repository directory;
cd devstack
vim local.conf
Enter the settings below, and update the value of each variable to your
preferred password;
[[local|localrc]]
ADMIN_PASSWORD=YourPasswordHere
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
Note that we used same password for all those services in this example
setup.
Similarly, define the OpenStack Host IP address;
HOST_IP=192.168.56.124
Change that to your system IP that will allow you to access OpenStack.
Save and exit the file.
Deploy OpenStack using DevStack on Ubuntu 22.04/Ubuntu
20.04
It is now time to roll up the sleeves and deploy OpenStack using DevStack
on Ubuntu 22.04/Ubuntu 20.04.
All you need to do is to execute the DevStack script, stack.sh and let it
perform its magics!
./stack.sh
In the meantime, it is time for you to get up and make coffee!!