forked from sous-chefs/kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
40 lines (34 loc) · 1.08 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
# encoding: utf-8
Vagrant.configure('2') do |config|
config.vm.box = 'opscode-centos-6.4'
config.vm.box_url = 'https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_centos-6.4_provisionerless.box'
config.omnibus.chef_version = :latest
config.berkshelf.enbaled = true
config.vm.define 'zookeeper' do |zookeeper|
zookeeper.vm.network :private_network, ip: '192.168.50.5'
zookeeper.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--memory', '512']
end
zookeeper.vm.provision :chef_solo do |chef|
chef.add_recipe 'java'
chef.add_recipe 'kafka::zookeeper'
end
end
config.vm.define 'broker' do |broker|
broker.vm.network :private_network, ip: '192.168.50.10'
broker.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--memory', '512']
end
broker.vm.provision :chef_solo do |chef|
chef.add_recipe 'java'
chef.add_recipe 'kafka'
chef.json = {
'kafka' => {
'zookeeper' => {
'connect' => ['192.168.50.5:2181']
}
}
}
end
end
end