-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
47 lines (44 loc) · 1.44 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
Vagrant.configure("2") do |config|
config.nfs.functional = false
config.vm.synced_folder "./", "/vagrant", type: "virtiofs"
config.vm.define "vinculum", primary: true do |vinculum|
vinculum.vm.hostname = "vinculum"
vinculum.vm.box = "generic/debian11"
vinculum.vm.network "forwarded_port", guest: 80, host: 8081
vinculum.vm.network :private_network, :ip => '10.11.11.10'
vinculum.vm.provider "libvirt" do |vb|
vb.memory = "2048"
vb.cpus = "8"
vb.memorybacking :access, :mode => "shared"
end
vinculum.vm.provision :ansible do |a|
a.playbook = "vagrant/vinculum.yml"
end
end
config.vm.define "drone" do |drone|
drone.vm.hostname = "drone"
drone.vm.box = "generic/debian11"
drone.vm.network :private_network, :ip => '10.11.11.11'
drone.vm.provider "libvirt" do |vb|
vb.memory = "2048"
vb.cpus = "8"
vb.memorybacking :access, :mode => "shared"
end
drone.vm.provision :ansible do |a|
a.playbook = "vagrant/drone.yml"
end
end
config.vm.define "remote" do |remote|
remote.vm.hostname = "remote"
remote.vm.box = "generic/debian11"
remote.vm.network :private_network, :ip => '10.11.11.99'
remote.vm.provider "libvirt" do |vb|
vb.memory = "512"
vb.cpus = "2"
vb.memorybacking :access, :mode => "shared"
end
remote.vm.provision :ansible do |a|
a.playbook = "vagrant/remote.yml"
end
end
end