forked from fluent/fluent-package-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
56 lines (53 loc) · 1.2 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
vms = [
{
:id => "debian-bullseye",
:box => "bento/debian-11",
},
{
:id => "debian-bookworm",
:box => "bento/debian-12",
},
{
:id => "ubuntu-focal",
:box => "bento/ubuntu-20.04",
},
{
:id => "ubuntu-jammy",
:box => "bento/ubuntu-22.04",
},
{
:id => "centos-7",
:box => "bento/centos-7",
},
{
:id => "rockylinux-8",
:box => "bento/rockylinux-8",
},
{
:id => "almalinux-9",
:box => "bento/almalinux-9",
},
{
:id => "amazonlinux-2",
:box => "bento/amazonlinux-2",
},
]
n_cpus = ENV["BOX_N_CPUS"]&.to_i || 2
memory = ENV["BOX_MEMORY"]&.to_i || 2048
vms.each_with_index do |vm, idx|
id = vm[:id]
box = vm[:box] || id
config.vm.define(id) do |node|
node.vm.box = box
node.vm.provider("virtualbox") do |virtual_box|
virtual_box.cpus = n_cpus if n_cpus
virtual_box.memory = memory if memory
end
end
end
end