forked from torontomulibrary/islandora_chef
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
72 lines (58 loc) · 2.18 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.hostname = "islandora-berkshelf"
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise64-cloud"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box"
# Forward port mappings
config.vm.network :forwarded_port, guest: 8080, host: 8080 # Tomcat
config.vm.network :forwarded_port, guest: 3306, host: 3306 # MySQL
config.vm.network :forwarded_port, guest: 5432, host: 5432 # PostgreSQL
config.vm.network :forwarded_port, guest: 80, host: 8181 # Apache
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", '2048']
end
# Enabling the Berkshelf plugin
config.berkshelf.enabled = true
# Install the latest version of Omnibus
# needed to fix https://tickets.opscode.com/browse/CHEF-5041 ; https://tickets.opscode.com/browse/CHEF-5100
config.omnibus.chef_version = '11.6.2'
config.vm.provision :chef_solo do |chef|
# Log the heck out of everything
chef.log_level = :debug
chef.formatter = :doc
chef.json = {
# Defaults for Islandora Sandbox / RC VM
"drupal" => {
"site" => {
"admin" => "admin",
"pass" => "islandora",
"name" => "Islandora Sandbox",
},
"db" => {
"password" => 'islandora'
}
},
# FIXME: this has to be here due to an override problem; see: http://serverfault.com/questions/541155/
"java" => {
"jdk_version" => "7",
# Djatoka requires the Oracle JDK
"install_flavor" => "oracle",
"oracle" => {
"accept_oracle_download_terms" => true
}
},
"tomcat" => {
"java_options" => "-Xms1024M -Xmx1024M -Djava.awt.headless=true -XX:MaxPermSize=128m"
},
}
chef.roles_path = "roles"
# NB: order matters here
chef.add_recipe("ubuntu-baseline")
chef.add_role("backend")
chef.add_role("frontend")
end
end