-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
52 lines (52 loc) · 1.35 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
#!/usr/bin/env ruby
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
config.omnibus.chef_version = :latest
config.berkshelf.enabled = true
config.vm.provider :virtualbox do |vb|
vb.customize [ 'modifyvm', :id, '--memory', 4096 ]
vb.customize [ 'modifyvm', :id, '--cpus', 4 ]
vb.customize [ 'modifyvm', :id, '--ioapic', 'on' ]
end
config.vm.define 'vagrant' do |node|
node.vm.box = 'chef/ubuntu-12.04'
node.vm.hostname = 'vagrant'
node.vm.network :private_network, :ip => '10.10.10.10'
node.vm.network :forwarded_port, guest: 9200, host: 9200
node.vm.network :forwarded_port, guest: 9300, host: 9300
node.vm.provision :chef_solo do |chef|
chef.log_level = :info
chef.json = {
logstash: {
config: {
example: {
input: {
test: {
file: {
path: '/bogus.log'
}
}
},
filter: {
test: {
seq: {}
}
},
output: {
test: {
stdout: {}
}
}
}
}
}
}
chef.run_list = %w(
recipe[apt]
recipe[bjn_java]
recipe[bjn_logstash]
)
end
end
end