-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
44 lines (39 loc) · 1.02 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.provision "ansible" do |ansible|
ansible.verbose = "v"
ansible.playbook = "playbook.yml"
end
config.vm.provider "virtualbox" do |vb|
vb.gui = false
end
config.vm.define "test1" do |test1|
test1.vm.hostname = "test1"
test1.vm.network "private_network", ip: "10.0.0.10"
test1.vm.provider "virtualbox" do |vb|
vb.name = "test1"
vb.memory = 1024
vb.cpus = 1
end
end
config.vm.define "test2" do |test2|
test2.vm.hostname = "test2"
test2.vm.network "private_network", ip: "10.0.0.11"
test2.vm.provider "virtualbox" do |vb|
vb.name = "test2"
vb.memory = 1024
vb.cpus = 1
end
end
config.vm.define "test3" do |test3|
test3.vm.hostname = "test3"
test3.vm.network "private_network", ip: "10.0.0.12"
test3.vm.provider "virtualbox" do |vb|
vb.name = "test3"
vb.memory = 1024
vb.cpus = 1
end
end
end