
The scripts were excuted in the vagrant file as root, which was confusing some users, and addtionally meant we were not checking if sudo was being prefixed to the appropriate commands. Signed-off-by: Pete Birley <pete@port.direct> Change-Id: I1049c68d6644de6c4f74e52cf81d59c4c174b291
47 lines
1.5 KiB
Ruby
47 lines
1.5 KiB
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
Vagrant.configure("2") do |config|
|
|
config.vm.box = "generic/ubuntu2004"
|
|
|
|
if Vagrant.has_plugin?("vagrant-proxyconf")
|
|
config.proxy.http = ENV["HTTP_PROXY"]
|
|
config.proxy.https = ENV["HTTPS_PROXY"]
|
|
if ENV["NO_PROXY"].nil?
|
|
config.proxy.no_proxy = "localhost,127.0.0.1,10.96.0.0/12,192.168.49.0/24,192.168.99.0/24,10.0.2.15,10.244.0.0/16,172.28.0.0/30,.minikube.internal,.svc,.svc.cluster.local,jarvis.local"
|
|
else
|
|
config.proxy.no_proxy = ENV["NO_PROXY"]
|
|
end
|
|
end
|
|
|
|
config.vm.synced_folder "../../../", "/airship_charts"
|
|
|
|
config.vm.network "private_network", ip: "192.168.56.10"
|
|
|
|
config.vm.provider "libvirt" do |libvirt|
|
|
libvirt.cpus = 4
|
|
libvirt.memory = 8192
|
|
end
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
vb.gui = false
|
|
vb.cpus = 4
|
|
vb.memory = 8192
|
|
end
|
|
|
|
config.vm.provision "shell", privileged: false, env: {"PRIVATE_NS" => ENV["PRIVATE_NS"]}, inline: <<-SHELL
|
|
set -ex
|
|
cd /airship_charts/
|
|
./tools/gate/jarvis/010-pre-setup.sh
|
|
./tools/gate/jarvis/050-setup-development-ca.sh
|
|
./tools/gate/jarvis/100-deploy-k8s.sh
|
|
./tools/gate/jarvis/200-deploy-support.sh
|
|
./tools/gate/jarvis/300-deploy-loki.sh
|
|
./tools/gate/jarvis/400-deploy-harbor.sh
|
|
./tools/gate/jarvis/500-deploy-gerrit.sh
|
|
./tools/gate/jarvis/600-deploy-tekton.sh
|
|
./tools/gate/jarvis/700-deploy-jarvis-system.sh
|
|
./tools/gate/jarvis/800-deploy-jarvis-projects.sh
|
|
SHELL
|
|
end
|