-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
61 lines (45 loc) · 1.55 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
require 'berkshelf/vagrant'
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# The path to the Berksfile to use with Vagrant Berkshelf
# config.berkshelf.berksfile_path = "./Berksfile"
# An array of symbols representing groups of cookbook described in the Vagrantfile
# to skip installing and copying to Vagrant's shelf.
# config.berkshelf.only = []
# An array of symbols representing groups of cookbook described in the Vagrantfile
# to skip installing and copying to Vagrant's shelf.
# config.berkshelf.except = []
config.vm.host_name = "hystrixdemo"
config.vm.box = "squeeze64"
config.ssh.max_tries = 40
config.ssh.timeout = 120
# config.vm.boot_mode = :gui
config.vm.share_folder "apps", "/apps", "apps"
config.vm.define :dashboard do |config|
config.vm.network :hostonly, "33.33.33.10"
config.vm.provision :chef_solo do |chef|
chef.json = {
}
chef.run_list = [
"recipe[hystrix::tomcat]",
"recipe[hystrix::dashboard]",
"recipe[hystrix::turbine]"
]
end
end
(1..2).each do |i|
config.vm.define "web#{i}" do |config|
config.vm.network :hostonly, "33.33.33.1#{i}"
config.vm.provision :chef_solo do |chef|
chef.json = {
}
chef.run_list = [
"recipe[hystrix::tomcat]",
"recipe[hystrix::geoip]"
]
end
end
end
end