-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
38 lines (29 loc) · 849 Bytes
/
Vagrantfile
File metadata and controls
38 lines (29 loc) · 849 Bytes
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.hostname = "vs-tomcat-berkshelf"
config.vm.box_url = "file:////Users/noelking/development/opscode_centos-6.4_chef-11.4.4.box"
config.vm.box = "platform-centos"
config.vm.network :private_network, ip: "33.33.33.10"
config.vm.network :forwarded_port, guest: 8080, host: 8888 # Web ap
config.berkshelf.enabled = true
config.vm.provision :chef_solo do |chef|
chef.log_level = :debug
chef.json = {
:java => {
:oracle => {
"accept_oracle_download_terms" => true
},
:oracle_rpm => {
"type" => "jdk"
},
"jdk_version" => '7',
"install_flavor" => 'oracle'
}
}
chef.run_list = [
"recipe[java::default]",
"recipe[tomcat::default]"
]
end
end