forked from torontomulibrary/islandora_chef
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
46 lines (36 loc) · 1.46 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
# -*- 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 = 'ubuntu/precise64' # https://atlas.hashicorp.com/ubuntu/boxes/precise64
# 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.name = 'islandora'
vb.customize ["modifyvm", :id, "--memory", '4096']
end
# Enabling the Berkshelf plugin
config.berkshelf.enabled = true
# Install a specific version of Chef on the node
config.omnibus.chef_version = '11.14.2'
config.vm.provision :chef_solo do |chef|
# Log the heck out of everything
chef.formatter = :doc
chef.json = {
# For installing a particular Islandora release
# "islandora" => { "version" => "7.x-1.4"},
# Defaults for Tomcat JVM memory use etc.
# Needed to workaround http://stackoverflow.com/questions/19502173/
"tomcat" => {
"base_version" => '7',
"java_options" => "-Xms2056M -Xmx2056M -Djava.awt.headless=true -XX:MaxPermSize=256m"
}
}
chef.add_recipe 'ubuntu-baseline'
chef.add_recipe 'islandora'
end
end