-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
36 lines (21 loc) · 859 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
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
CPU_ALLOC = 4
RAM_ALLOC = 4096
CLIENT_IP_ADDRESS = "192.168.33.10"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
end
Vagrant::VERSION >= "1.1.0" and Vagrant.configure("2") do |config|
config.vm.synced_folder "/Users/Philip/Study/vagrant/spark", "/vagrant"
config.vm.network :private_network, ip: CLIENT_IP_ADDRESS
config.ssh.forward_agent = true
config.ssh.forward_x11 = true
config.vm.provider :virtualbox do |vb, override|
override.vm.provision :shell, :path => "bootstrap.sh"
# increase default VM RAM
vb.customize ["modifyvm", :id, "--memory", RAM_ALLOC]
vb.customize ["modifyvm", :id, "--cpus", CPU_ALLOC ]
end
end