octavia/devstack/samples/multinode/Vagrantfile
caoyuan 1910f024a3 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I291eb706df84489398b4f4b2736d7c5ab2e84747
2019-05-13 19:59:59 +00:00

51 lines
1.3 KiB
Ruby
Executable File

# -*- mode: ruby -*-
# vi: set ft=ruby :
require '../providers.rb'
Vagrant.configure(2) do |config|
config.vm.define 'main' do |main|
configure_providers(main.vm)
main.vm.network "private_network", ip:"192.168.42.10"
main.vm.hostname = "main"
main.vm.provision "shell", privileged: false, inline: <<-SHELL
#!/usr/bin/env bash
set -e
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install git
git clone https://opendev.org/openstack/devstack
cp /vagrant/local.conf ~/devstack
cp /vagrant/local.sh ~/devstack/local-manual.sh
cp /vagrant/webserver.sh ~/devstack
cd ~/devstack
./stack.sh
SHELL
end
config.vm.define 'second' do |second|
configure_providers(second.vm)
second.vm.network "private_network", ip:"192.168.42.11"
second.vm.hostname = "second"
second.vm.provision "shell", privileged: false, inline: <<-SHELL
#!/usr/bin/env bash
set -e
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install git
git clone https://opendev.org/openstack/devstack
cp /vagrant/local-2.conf ~/devstack/local.conf
cd ~/devstack
./stack.sh
SHELL
end
end