forked from ops-class/vagrant
/
Vagrantfile
38 lines (30 loc) · 1.23 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANT_COMMAND = ARGV[0]
Vagrant.configure(2) do |config|
config.vm.box = "minimal/trusty64"
config.vm.hostname = "zion"
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder "src", "/home/trinity/src", create: true
if Vagrant.has_plugin?("vagrant-timezone")
config.timezone.value = :host
end
config.vm.provider "virtualbox" do |v|
# 24 Dec 2015 : GWA : This is a fairly lightweight configuration. Feel
# free to beef it up to improve performance as needed.
v.name = "ops-class.org"
v.cpus = "1"
v.memory = "512"
# 24 Dec 2015 : GWA : Uncomment this if you want a GUI environment.
# vb.gui = true
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 10000]
v.customize ["modifyvm", :id, "--usb", "off"]
v.customize ["modifyvm", :id, "--usbehci", "off"]
end
config.vm.provision "file", source: ".provision/sharedfolders.conf", destination: "/tmp/sharedfolders.conf"
config.vm.provision "shell", path: ".provision/provision.sh"
if VAGRANT_COMMAND == "ssh"
config.ssh.username = "trinity"
end
end