-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
41 lines (33 loc) · 1.02 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
config.vm.hostname = 'openstudio-berkshelf'
# Don't use 11.14.2 because of https://github.com/opscode/chef/issues/1739 (duplicate error)
config.omnibus.chef_version = 'latest'
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = 'ubuntu/trusty64'
# Use berkshelf. Make sure to install ChefDK if you are using Windows.
config.berkshelf.enabled = true
config.vm.network :private_network, type: 'dhcp'
config.vm.provider :virtualbox do |p|
nc = 3
p.customize ['modifyvm', :id, '--memory', nc * 2048, '--cpus', nc]
end
config.vm.provision :chef_solo do |chef|
chef.json = {
openstudio: {
# 1.5.1.0c740efe7c
# 1.5.5.f6ccda50f0
# 1.6.0.9ebfb81bd3
version: '1.7.5',
install_method: 'installer',
installer: {
version_revision: '24e09a7180'
}
}
}
chef.run_list = [
'recipe[openstudio::default]'
]
end
end