infctl-cli/vagrant/dev/ubuntu/Vagrantfile
jon brookes 11b1f1b637 update: Added Longhorn installation process and updated memory allocation for VMs
update: Added 'git' and 'vagrant' to required tools in pre-flight checks

fix: configured k3s install to use internal nic for flanel network

update: Added Longhorn installation process and updated memory allocation for VMs

update: Added 'git' and 'vagrant' to required tools in pre-flight checks

fix: configured k3s install to use internal nic for flanel network

fix: corrected JSON formatting for config json

update: reduce VM memory allocation to 2GB, add Longhorn installation scripts and prerequisites, and implement checks for existing pods

fix: merge issues

fix: merge issues

update: Added Longhorn installation process and updated memory allocation for VMs

update: Added 'git' and 'vagrant' to required tools in pre-flight checks

fix: configured k3s install to use internal nic for flanel network

update: Added Longhorn installation process and updated memory allocation for VMs

update: Added 'git' and 'vagrant' to required tools in pre-flight checks

fix: configured k3s install to use internal nic for flanel network

fix: corrected JSON formatting for config json

update: reduce VM memory allocation to 2GB, add Longhorn installation scripts and prerequisites, and implement checks for existing pods

update: improve error logging in RunJsonDeployment and RunCommand functions

update: add jq installation to provision script

update: add version flag

bump version

fix: improve error messages for config file reading

feat: add Windows gitbash installation support and improve binary download process

clean up tmp code

fix: increase timeout for some slower windows clients

feat: add Ingress and Service configurations for nginx deployment, and implement MetalLB  and Traeik installation scripts

refactor: remove obsolete Traefik installation script

feat: add environment checks and configurations for Vagrant setup, including dnsmasq  MetalLB  and ingress

feat: add deployment and installation scripts for infmon-cli, including Kubernetes configurations

feat: refactor customer project creation and add success/failure job scripts

refactor: rename customer references to project in configuration and application logic

feat: enhance JSON deployment handling with retry logic and command execution improvements

feat: enhance RunJsonDeployment with error handling and retry logic; add tests for configuration reading

feat: add automatic creation of base and config JSON files from examples if they do not exist

refactor: remove database package and related functionality; update app state initialization and error handling

refactor: update deployment handling to use ProjectConfig; improve error messages and logging

feat: enhance RunJsonDeployment retry logic with configurable delay; improve logging for retries

feat: implement LoadConfigs function for improved configuration loading; add logger setup

refactor: remove unused fields from BaseConfig and ProjectConfig structs for cleaner configuration management

refactor: clean up tests by removing obsolete functions and simplifying test cases

chore: update version to v0.0.5 in install script

feat: implement default configuration creation for BaseConfig and ProjectConfig; enhance validation logic

fix: enhance configuration parsing and loading; streamline flag handling and error reporting

refactor: remove obsolete configuration download logic from installation script
2025-09-05 16:49:06 +01:00

125 lines
3.4 KiB
Ruby

# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
# Load default values if environment variables are not set
vm1_ip = ENV['VM1_IP'] || "192.168.56.80"
vm2_ip = ENV['VM2_IP'] || "192.168.56.81"
vm3_ip = ENV['VM3_IP'] || "192.168.56.82"
workstation_ip = ENV['WORKSTATION_IP'] || "192.168.56.10"
Vagrant.configure("2") do |config|
if defined?(VagrantVbguest)
config.vbguest.auto_update = false
end
# VM 1 Configuration
config.vm.define "vm1" do |vm1|
vm1.vm.box = "ubuntu/jammy64"
vm1.vm.boot_timeout = 600
vm1.vm.hostname = "vm1"
# Fixed private network IP
vm1.vm.network "private_network", ip: vm1_ip
# Public network for external access
if ENV['VAGRANT_BRIDGE']
vm1.vm.network "public_network", bridge: ENV['VAGRANT_BRIDGE']
else
vm1.vm.network "public_network"
end
vm1.vm.provider "virtualbox" do |vb|
vb.memory = "2048" # 4GB memory
vb.cpus = 2
end
vm1.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -y software-properties-common python3-pip python3-apt jq
# python3 -m pip install --upgrade pip
SHELL
end
# VM 2 Configuration
config.vm.define "vm2" do |vm2|
vm2.vm.box = "ubuntu/jammy64"
vm2.vm.boot_timeout = 600
vm2.vm.hostname = "vm2"
# Fixed private network IP
vm2.vm.network "private_network", ip: vm2_ip
# Public network for external access
if ENV['VAGRANT_BRIDGE']
vm2.vm.network "public_network", bridge: ENV['VAGRANT_BRIDGE']
else
vm2.vm.network "public_network"
end
vm2.vm.provider "virtualbox" do |vb|
vb.memory = "2048" # 4GB memory
vb.cpus = 2
end
vm2.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -y software-properties-common python3-pip python3-apt jq
# python3 -m pip install --upgrade pip
SHELL
end
# VM 3 Configuration
config.vm.define "vm3" do |vm3|
vm3.vm.box = "ubuntu/jammy64"
vm3.vm.boot_timeout = 600
vm3.vm.hostname = "vm3"
# Fixed private network IP
vm3.vm.network "private_network", ip: vm3_ip
# Public network for external access
if ENV['VAGRANT_BRIDGE']
vm3.vm.network "public_network", bridge: ENV['VAGRANT_BRIDGE']
else
vm3.vm.network "public_network"
end
vm3.vm.provider "virtualbox" do |vb|
vb.memory = "2048" # 4GB memory
vb.cpus = 2
end
vm3.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -y software-properties-common python3-pip python3-apt jq
# python3 -m pip install --upgrade pip
SHELL
end
# Ansible Controller/Workstation Configuration
config.vm.define "workstation" do |ws|
ws.vm.box = "ubuntu/jammy64"
ws.vm.boot_timeout = 600
ws.vm.hostname = "ansible-workstation"
ws.vm.synced_folder ".", "/vagrant"
# Fixed private network IP
ws.vm.network "private_network", ip: workstation_ip
ws.vm.provider "virtualbox" do |vb|
vb.memory = "1024" # Less memory needed for control node
vb.cpus = 1
end
ws.vm.provision "shell", path: "ansible/provision_workstation.sh"
end
end