2023-10-21 22:22:23 +00:00
|
|
|
Vagrant.configure("2") do |config|
|
|
|
|
config.vm.box = "debian/bullseye64"
|
2023-10-23 12:26:55 +00:00
|
|
|
config.vm.synced_folder '.', '/vagrant', disabled: true # Allows WSL call to work within WSL filesystem
|
2023-10-21 22:22:23 +00:00
|
|
|
config.vm.provision :shell, path: "https://git.halis.io/athens-school/ISO-repository/raw/branch/master/quick-installer.sh", run: "always"
|
|
|
|
|
|
|
|
config.vm.provider "virtualbox" do |v|
|
|
|
|
v.memory = 1024
|
|
|
|
v.cpus = 1
|
|
|
|
end
|
|
|
|
|
2023-10-23 12:26:55 +00:00
|
|
|
boxes = [
|
|
|
|
{ :name => "hb-slim-1", :mac => "080027117BED"},
|
|
|
|
{ :name => "hb-slim-2", :mac => "0800276FAEEC"},
|
|
|
|
{ :name => "hb-slim-3", :mac => "080027202C0B"},
|
|
|
|
{ :name => "hb-wide-1", :mac => "080027F3F85F", :cpus => 2, :memory => 4096},
|
|
|
|
{ :name => "hb-wide-2", :mac => "080027A74FDB", :cpus => 2, :memory => 4096},
|
|
|
|
]
|
2023-10-21 22:22:23 +00:00
|
|
|
|
2023-10-23 12:26:55 +00:00
|
|
|
boxes.each do |opts|
|
|
|
|
config.vm.define opts[:name] do |box|
|
|
|
|
box.vm.hostname = opts[:name]
|
|
|
|
box.vm.network "public_network", bridge: "Intel(R) I211 Gigabit Network Connection", :mac => opts[:mac]
|
|
|
|
box.vm.provider "virtualbox" do |v|
|
|
|
|
if !opts[:memory].nil?
|
|
|
|
v.memory = opts[:memory]
|
|
|
|
end
|
|
|
|
if !opts[:cpus].nil?
|
|
|
|
v.cpus = opts[:cpus]
|
|
|
|
end
|
2023-10-21 22:22:23 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|