forked from Cascading/vagrant-cascading-hadoop-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
59 lines (47 loc) · 1.66 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
47
48
49
50
51
52
53
54
55
56
57
58
59
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "cascading-hadoop-base"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--cpus", "1", "--memory", "512"]
end
config.vm.provider "vmware_fusion" do |v, override|
override.vm.box_url = "http://files.vagrantup.com/precise64_vmware.box"
v.vmx["memsize"] = "512"
v.vmx["numvcpus"] = "1"
end
config.vm.define :hadoop1 do |hadoop1|
hadoop1.vm.network "private_network", ip: "192.168.7.12"
hadoop1.vm.hostname = "hadoop1.local"
config.vm.provision :puppet do |puppet|
puppet.manifest_file = "datanode.pp"
puppet.module_path = "modules"
end
end
config.vm.define :hadoop2 do |hadoop2|
hadoop2.vm.network "private_network", ip: "192.168.7.13"
hadoop2.vm.hostname = "hadoop2.local"
config.vm.provision :puppet do |puppet|
puppet.manifest_file = "datanode.pp"
puppet.module_path = "modules"
end
end
config.vm.define :hadoop3 do |hadoop3|
hadoop3.vm.network "private_network", ip: "192.168.7.14"
hadoop3.vm.hostname = "hadoop3.local"
config.vm.provision :puppet do |puppet|
puppet.manifest_file = "datanode.pp"
puppet.module_path = "modules"
end
end
config.vm.define :master, primary: true do |master|
master.vm.network "private_network", ip: "192.168.7.10"
master.vm.hostname = "master.local"
config.vm.provision :puppet do |puppet|
puppet.manifest_file = "master.pp"
puppet.module_path = "modules"
end
end
end