-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
37 lines (26 loc) · 1.11 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "mmichal/ubuntu18_04"
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--memory", 512]
end
config.vm.define :haproxy, primary: true do |haproxy_config|
haproxy_config.vm.hostname = 'haproxy'
haproxy_config.vm.network :forwarded_port, guest: 8080, host: 8080
haproxy_config.vm.network :forwarded_port, guest: 80, host: 8081
haproxy_config.vm.network :private_network, ip: "172.55.33.10"
haproxy_config.vm.provision :shell, :path => "vagrant-scripts/haproxy-setup.sh"
end
config.vm.define :web1 do |web1_config|
web1_config.vm.hostname = 'web1'
web1_config.vm.network :private_network, ip: "172.55.33.11"
web1_config.vm.provision :shell, :path => "vagrant-scripts/web-setup.sh"
end
config.vm.define :web2 do |web2_config|
web2_config.vm.hostname = 'web2'
web2_config.vm.network :private_network, ip: "172.55.33.12"
web2_config.vm.provision :shell, :path => "vagrant-scripts/web-setup.sh"
end
end