-
Notifications
You must be signed in to change notification settings - Fork 284
/
Vagrantfile
46 lines (37 loc) · 1.05 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
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/jammy64"
config.vm.box_check_update = false
config.vm.network "private_network", type: "dhcp"
config.vm.define "app" do |app|
app.vm.hostname = "app"
app.vm.network "forwarded_port", guest: 80, host: 8000
app.vm.provider "virtualbox" do |vb|
vb.cpus = 2
vb.memory = 1500
end
app.vm.provision "ansible" do |ansible|
ansible.verbose = "v"
ansible.playbook = "./provisioning/image/ansible/playbooks.yml"
ansible.skip_tags = "nodejs"
ansible.groups = {
"guests" => ["app"]
}
end
app.vm.synced_folder "./", "/vagrant"
end
config.vm.define "bench" do |bench|
bench.vm.hostname = "bench"
bench.vm.provider "virtualbox" do |vb|
vb.cpus = 4
vb.memory = 7680
end
bench.vm.provision "ansible" do |ansible|
ansible.verbose = "v"
ansible.playbook = "./provisioning/bench/ansible/playbooks.yml"
ansible.groups = {
"bench" => ["bench"]
}
end
end
end