Skip to content

Instantly share code, notes, and snippets.

@willnss
Created August 18, 2023 18:10
Show Gist options
  • Save willnss/0923189f1c0273c5a0a180f14a048f9b to your computer and use it in GitHub Desktop.
Save willnss/0923189f1c0273c5a0a180f14a048f9b to your computer and use it in GitHub Desktop.
Provisioning openstack devstack self-hosted on ubuntu server 22
# Instalar um servidor local de mDNS
sudo apt update
sudo apt install avahi-daemon
sudo nano /etc/avahi/avahi-daemon.conf
# Ajustar o nome para o host-name desejado, ex:
host-name=openstackdev
sudo service avahi-daemon restart
sudo systemctl enable avahi-daemon.service
# Criar um usuário para o devstack
sudo useradd -s /bin/bash -d /opt/stack -m stack
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
# Definindo senha do usuário
sudo passwd stack
# Clonando devstack
su - stack
git clone https://opendev.org/openstack/devstack.git
cd devstack
# Configuração
cat << EOF >> local.conf
[[local|localrc]]
ADMIN_PASSWORD=MySecretPassword123
DATABASE_PASSWORD=\$ADMIN_PASSWORD
RABBIT_PASSWORD=\$ADMIN_PASSWORD
SERVICE_PASSWORD=\$ADMIN_PASSWORD
EOF
# Permissões
chmod +x ./stack.sh
chmod +x ./unstack.sh
# Execução
./stack.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment