This repository has been archived by the owner on Dec 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathVagrantfile
54 lines (51 loc) · 1.62 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
Vagrant.configure("2") do |config|
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.auto_detect = true
# If you are using VirtualBox, you might want to enable NFS for shared folders
# config.cache.enable_nfs = true
end
if Vagrant.has_plugin?("vagrant-omnibus")
config.omnibus.chef_version = '11.12.8'
end
end
Vagrant::Config.run do |config|
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.forward_port 80, 4000
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ['cookbooks', 'cookbooks-dependencies']
#configuring soft that's going to be installed
chef.json.merge!({
:java => {
"install_flavor" => "oracle",
:oracle => {"accept_oracle_download_terms" => true},
:jdk_version => "7"
},
:mysql=> {
:client => { :version => "5.5.28" },
:server_root_password => "root",
:server_repl_password => "no_replication",
:server_debian_password => "root"
},
:resolver => {
:nameservers => ["8.8.8.8", "8.8.4.4"]
},
:nginx => {
:forum_site => "localhost"
}
})
#updating package caches to install fresh soft
chef.add_recipe("resolver")
chef.add_recipe("apt-get")
#installing software
chef.add_recipe("nginx")
chef.add_recipe("java")
chef.add_recipe("openssl::default")
chef.add_recipe("mysql::server") #installs both client and server
chef.add_recipe("tomcat7")
chef.add_recipe("python::pip")
chef.add_recipe("apt")
chef.add_recipe("git")
chef.add_recipe("jtalks::cicd")
end
end