-
Notifications
You must be signed in to change notification settings - Fork 3
/
Vagrantfile
31 lines (25 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "CentOS-6.3-x86_64-minimal"
config.vm.provision :shell, :inline => "sudo cp /vagrant/files/etc/hosts /etc/hosts"
config.vm.define :manager do |manager_config|
manager_config.vm.host_name = "hadoop-manager"
manager_config.vm.network :hostonly, "192.168.56.2"
end
config.vm.define :node01 do |node01_config|
node01_config.vm.host_name = "hadoop-node01"
node01_config.vm.network :hostonly, "192.168.56.3"
node01_config.vm.customize ["modifyvm", :id, "--memory", 2048]
end
config.vm.define :node02 do |node02_config|
node02_config.vm.host_name = "hadoop-node02"
node02_config.vm.network :hostonly, "192.168.56.4"
node02_config.vm.customize ["modifyvm", :id, "--memory", 2048]
end
config.vm.define :node03 do |node03_config|
node03_config.vm.host_name = "hadoop-node03"
node03_config.vm.network :hostonly, "192.168.56.5"
node03_config.vm.customize ["modifyvm", :id, "--memory", 2048]
end
end