-
Notifications
You must be signed in to change notification settings - Fork 165
/
Vagrantfile
40 lines (40 loc) · 1.44 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
Vagrant.configure(2) do |config|
config.ssh.insert_key = false
config.vm.define "node1" do |node1|
node1.vm.box = "geerlingguy/centos7"
node1.vm.box_version = "1.2.3"
node1.vm.network "private_network", ip: "192.168.199.2"
node1.vm.hostname = "node1.example.com"
node1.vm.provision "shell", path: "scripts/install_ambari_server.sh"
node1.vm.network "forwarded_port", guest: 8080, host: 8080
node1.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 2
v.customize ['modifyvm', :id, '--cableconnected1', 'on']
end
end
config.vm.define "node2" do |node2|
node2.vm.box = "geerlingguy/centos7"
node2.vm.box_version = "1.2.3"
node2.vm.network "private_network", ip: "192.168.199.3"
node2.vm.hostname = "node2.example.com"
node2.vm.provision "shell", path: "scripts/install_ambari_agent.sh"
node2.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 2
v.customize ['modifyvm', :id, '--cableconnected1', 'on']
end
end
config.vm.define "node3" do |node3|
node3.vm.box = "geerlingguy/centos7"
node3.vm.box_version = "1.2.3"
node3.vm.network "private_network", ip: "192.168.199.4"
node3.vm.hostname = "node3.example.com"
node3.vm.provision "shell", path: "scripts/install_ambari_agent.sh"
node3.vm.provider "virtualbox" do |v|
v.memory = 2048
v.cpus = 2
v.customize ['modifyvm', :id, '--cableconnected1', 'on']
end
end
end