forked from monigusto/vagrant-monigusto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
84 lines (63 loc) · 2.59 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.define :server do |server_config|
# Every Vagrant virtual environment requires a box to build off of.
server_config.vm.box = "ubuntu-12.04"
# Add a little more memory to allow for internal hosts
server_config.vm.customize ["modifyvm", :id, "--memory", 3072]
server_config.vm.network :hostonly, "192.168.33.11"
server_config.vm.host_name = "vagrant-server.vm"
# server_config.vm.network :bridged
server_config.vm.forward_port 8080, 8080
server_config.vm.forward_port 8081, 8081
server_config.vm.forward_port 8082, 8082
server_config.vm.forward_port 8083, 8083
# Nginx Tasseo
server_config.vm.forward_port 8084, 8084
# Tasseo
server_config.vm.forward_port 5000, 8085
# Statsd telnet interface (see https://github.com/etsy/statsd)
# telnet localhost 8086
# use commands 'stats' 'counters' or 'timers'
server_config.vm.forward_port 8126, 8086
# JMX
server_config.vm.forward_port 1105, 8087
# ES
server_config.vm.forward_port 9200, 8088
# RabbitMQ
server_config.vm.forward_port 55672, 8089
# Sensu-dashboard
server_config.vm.forward_port 8090, 8090
# Sensu-api
server_config.vm.forward_port 8091, 8091
# We need to increase timeout due to the forward ports default = 10
server_config.ssh.timeout = 1000
server_config.ssh.max_tries = 3000
# server_config.vm.share_folder "v-data", "/vagrant_data", "../data"
server_config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = [ "cookbooks" , "monigusto/cookbooks","site-cookbooks"]
chef.roles_path = "roles"
chef.data_bags_path = "data_bags"
chef.add_role "monigusto_server"
end
end
config.vm.define :client do |client_config|
# Every Vagrant virtual environment requires a box to build off of.
client_config.vm.box = "ubuntu-12.04"
# Add a little more memory to allow for internal hosts
client_config.vm.customize ["modifyvm", :id, "--memory", 1024]
client_config.vm.network :hostonly, "192.168.33.10"
client_config.vm.host_name = "vagrant-client.vm"
# client_config.vm.network :bridged
# client_config.vm.forward_port 80, 8080
# client_config.vm.share_folder "v-data", "/vagrant_data", "../data"
client_config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = [ "cookbooks" , "monigusto/cookbooks","site-cookbooks"]
chef.roles_path = "roles"
chef.log_level = :debug
chef.data_bags_path = "data_bags"
chef.add_role "monigusto_client"
end
end
end