-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
49 lines (40 loc) · 1.48 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "precise32"
config.vm.host_name = "java-qa-vm"
config.vm.customize ["modifyvm", :id, "--memory", 256]
config.vm.network :hostonly, "10.12.122.122", :netmask => "255.255.0.0"
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ["cookbooks"]
chef.json.merge!({
:build_essential => {
:compiletime => true
},
:nginx => {
:install_method => "source"
},
:java => {
:install_flavor => "oracle",
:oracle => {
"accept_oracle_download_terms" => true
}
},
:sonar => {
:web_domain => "sonar.java-qa.vm"
},
:jenkins => {
:http_proxy => {
:variant => "nginx",
:host_name => "jenkins.java-qa.vm"
}
}
})
chef.add_recipe "apt"
chef.add_recipe "build-essential"
chef.add_recipe "nginx"
chef.add_recipe "sonar"
chef.add_recipe "sonar::proxy_nginx"
chef.add_recipe "jenkins"
end
end