-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
37 lines (28 loc) · 998 Bytes
/
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
Vagrant.configure("2") do |config|
config.vm.box = "hashicorp/precise64"
# config.vm.define "es3" do |node|
# node.vm.network :private_network, ip: "10.30.50.202"
# node.vm.hostname = "es3.vagrant"
# end
# config.vm.define "es2" do |node|
# node.vm.network :private_network, ip: "10.30.50.201"
# node.vm.hostname = "es2.vagrant"
# end
config.vm.define "es1" do |node|
node.vm.network :private_network, ip: "10.30.50.200"
node.vm.hostname = "es1.vagrant"
end
config.vm.define "redis" do |node|
config.vm.network :private_network, ip: "10.30.50.100"
node.vm.hostname = "redis.vagrant"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
end
# Manage /etc/hosts on host and VMs
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.include_offline = true
config.hostmanager.ignore_private_ip = false
config.vm.provision :hostmanager
end