-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
74 lines (61 loc) · 2.32 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
Vagrant.configure(2) do |config|
config.vm.box = "debian/jessie64"
config.vm.box_check_update = false
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.define "consul" do |consul|
consul.vm.hostname = "consul"
consul.vm.network "private_network", ip: "192.168.99.99"
consul.vm.provider "virtualbox" do |virtualbox|
virtualbox.customize [ "guestproperty", "set", :id,
"/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold",
10000 ]
virtualbox.memory = 512
virtualbox.cpus = 1
end
consul.vm.provision :ansible do |ansible|
ansible.playbook = "ansible/consul.yml"
end
end
config.vm.define "graylog" do |graylog|
graylog.vm.hostname = "graylog"
graylog.vm.network "private_network", ip: "192.168.99.2"
graylog.vm.provider "virtualbox" do |virtualbox|
virtualbox.memory = 4096
virtualbox.cpus = 2
virtualbox.customize [ "guestproperty", "set", :id,
"/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold",
10000 ]
end
graylog.vm.provision :ansible do |ansible|
ansible.playbook = "ansible/graylog.yml"
end
end
config.vm.define "kafka" do |kafka|
kafka.vm.hostname = "kafka"
kafka.vm.network "private_network", ip: "192.168.99.3"
kafka.vm.provider "virtualbox" do |virtualbox|
virtualbox.memory = 2048
virtualbox.cpus = 1
virtualbox.customize [ "guestproperty", "set", :id,
"/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold",
10000 ]
end
kafka.vm.provision :ansible do |ansible|
ansible.playbook = "ansible/kafka.yml"
end
end
config.vm.define "prometheus" do |prometheus|
prometheus.vm.hostname = "prometheus"
prometheus.vm.network "private_network", ip: "192.168.99.4"
prometheus.vm.provider "virtualbox" do |virtualbox|
virtualbox.customize [ "guestproperty", "set", :id,
"/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold",
10000 ]
virtualbox.memory = 512
virtualbox.cpus = 1
end
prometheus.vm.provision :ansible do |ansible|
ansible.playbook = "ansible/prometheus.yml"
end
end
end