-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
52 lines (46 loc) · 1.33 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_plugin 'vagrant-berkshelf'
#Vagrant.require_plugin 'vagrant-omnibus'
Vagrant.require_plugin 'vagrant-cachier'
Vagrant.require_plugin 'vagrant-aws'
Vagrant.configure('2') do |config|
config.vm.define 'wmd' do |wmd|
wmd.vm.box = 'opscode-ubuntu-12.04'
wmd.vm.box_url = 'https://opscode-vm.s3.amazonaws.com/vagrant/boxes/opscode-ubuntu-12.04.box'
wmd.vm.network :private_network, ip: '192.168.33.100'
wmd.vm.network :forwarded_port, guest: 80, host: 8080
wmd.vm.provider 'virtualbox' do |v|
v.customize ['modifyvm', :id, '--memory', 512]
v.customize ['modifyvm', :id, '--name', 'whatsmydistrict']
end
# plugin configuration
wmd.berkshelf.enabled = true
#wmd.omnibus.chef_version = :latest
wmd.cache.enable :apt
wmd.cache.enable :chef
wmd.cache.enable :gem
wmd.vm.provision :chef_solo do |chef|
chef.log_level = :debug
chef.run_list = [
'recipe[openlexington::ruby]',
'recipe[whatsmydistrict]'
]
chef.json = {
build_essential: {
compiletime: true
},
postgresql: {
password: {
postgres: 'password'
}
},
openlexington: {
ruby: {
version: '1.9.1'
}
}
}
end
end
end