-
Notifications
You must be signed in to change notification settings - Fork 11
/
Vagrantfile
50 lines (47 loc) · 1.56 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
Vagrant.configure("2") do |config|
config.nfs.functional = false
config.vm.synced_folder "./", "/vagrant", type: "virtiofs"
config.vm.define "kraken", primary: true do |kraken|
kraken.vm.hostname = "kraken"
kraken.vm.box = "generic/debian12"
kraken.vm.network "forwarded_port", guest: 80, host: 8081
kraken.vm.network :private_network, :ip => '10.13.37.10'
kraken.vm.provider "libvirt" do |vb|
vb.default_prefix = "myomikron_kraken"
vb.memory = "4096"
vb.cpus = "8"
vb.memorybacking :access, :mode => "shared"
end
kraken.vm.provision :ansible do |a|
a.playbook = "vagrant/kraken.yml"
end
end
config.vm.define "leech" do |leech|
leech.vm.hostname = "leech"
leech.vm.box = "generic/debian12"
leech.vm.network :private_network, :ip => '10.13.37.11'
leech.vm.provider "libvirt" do |vb|
vb.default_prefix = "myomikron_kraken"
vb.memory = "2048"
vb.cpus = "8"
vb.memorybacking :access, :mode => "shared"
end
leech.vm.provision :ansible do |a|
a.playbook = "vagrant/leech.yml"
end
end
config.vm.define "target" do |target|
target.vm.hostname = "target"
target.vm.box = "generic/debian11"
target.vm.network :private_network, :ip => '10.13.37.99'
target.vm.provider "libvirt" do |vb|
vb.default_prefix = "myomikron_kraken"
vb.memory = "512"
vb.cpus = "2"
vb.memorybacking :access, :mode => "shared"
end
target.vm.provision :ansible do |a|
a.playbook = "vagrant/target.yml"
end
end
end