forked from lusis/chef-logstash
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
143 lines (127 loc) · 3.52 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
# Common Settings
config.omnibus.chef_version = '10.26.0'
config.vm.hostname = 'logstash'
config.vm.network :public_network
config.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--memory', '1024']
end
config.vm.define :lucid32 do |dist_config|
dist_config.vm.box = 'lucid32'
dist_config.vm.box_url = 'http://files.vagrantup.com/lucid32.box'
dist_config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = [ '/tmp/logstash-cookbooks' ]
chef.provisioning_path = '/etc/vagrant-chef'
chef.log_level = :debug
chef.run_list = %w[
minitest-handler
apt
java
monit
erlang
git
elasticsearch
php::module_curl
logstash::server
]
chef.json = {
elasticsearch: {
cluster_name: 'logstash_vagrant',
min_mem: '64m',
max_mem: '64m',
limits: {
nofile: 1024,
memlock: 512
}
},
logstash: {
server: {
xms: '128m',
xmx: '128m',
enable_embedded_es: false,
elasticserver_ip: '127.0.0.1',
init_method: 'runit'
} }
}
end
end
config.vm.define :lucid64 do |dist_config|
dist_config.vm.box = 'lucid64'
dist_config.vm.box_url = 'http://files.vagrantup.com/lucid64.box'
dist_config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = [ '/tmp/logstash-cookbooks' ]
chef.provisioning_path = '/etc/vagrant-chef'
chef.log_level = :debug
chef.run_list = %w[
minitest-handler
apt
java
monit
erlang
git
elasticsearch
php::module_curl
logstash::server
]
chef.json = {
elasticsearch: {
cluster_name: 'logstash_vagrant',
min_mem: '64m',
max_mem: '64m',
limits: {
nofile: 1024,
memlock: 512
}
},
logstash: {
server: {
xms: '128m',
xmx: '128m',
enable_embedded_es: false,
elasticserver_ip: '127.0.0.1'
}
}
}
end
end
config.vm.define :centos6_32 do |dist_config|
dist_config.vm.box = 'centos6_32'
dist_config.vm.box_url = 'http://vagrant.sensuapp.org/centos-6-i386.box'
dist_config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = [ '/tmp/logstash-cookbooks' ]
chef.provisioning_path = '/etc/vagrant-chef'
chef.log_level = :debug
chef.run_list = %w[
minitest-handler
java
yum::epel
erlang
git
elasticsearch
php::module_curl
logstash::server
]
chef.json = {
elasticsearch: {
cluster_name: 'logstash_vagrant',
min_mem: '64m',
max_mem: '64m',
limits: {
nofile: 1024,
memlock: 512
}
},
logstash: {
server: {
xms: '128m',
xmx: '128m',
enable_embedded_es: false,
elasticserver_ip: '127.0.0.1'
}
}
}
end
end
end