forked from cloudfoundry-attic/bosh-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
23 lines (18 loc) · 865 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
VM_MEMORY = ENV.fetch("VM_MEMORY", 6*1024).to_i
VM_CORES = ENV.fetch("VM_CORES", 4).to_i
BOX_VERSION = 217
Vagrant.configure('2') do |config|
config.vm.hostname='bosh-lite'
config.vm.box = "boshlite-ubuntu1204-build#{BOX_VERSION}"
config.vm.network :private_network, ip: '192.168.50.4'
config.vm.provider :virtualbox do |v, override|
override.vm.box_url = "http://bosh-lite-build-artifacts.s3.amazonaws.com/bosh-lite/#{BOX_VERSION}/boshlite-virtualbox-ubuntu1204.box"
v.customize ["modifyvm", :id, "--memory", VM_MEMORY]
v.customize ["modifyvm", :id, "--cpus", VM_CORES]
end
config.vm.provider :vmware_fusion do |v, override|
override.vm.box_url = "http://bosh-lite-build-artifacts.s3.amazonaws.com/bosh-lite/#{BOX_VERSION}/boshlite-vmware-ubuntu1204.box"
v.vmx["numvcpus"] = VM_CORES
v.vmx["memsize"] = VM_MEMORY
end
end