-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathVagrantfile
39 lines (30 loc) · 1.04 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "mac-osx-10-10-vmware"
config.vm.box_url = "./mac-osx-10-10-vmware.box"
config.ssh.insert_key = false
# Prevent asking for password when no GUI is available
config.vm.provision "shell", path: "./provision/setup-keychain.sh",
privileged: false
config.vm.define "base" do |base|
end
config.vm.define "brew" do |brew|
config.vm.provision "shell", path: "./provision/install-homebrew.sh",
privileged: false
end
config.vm.define "boxen" do |boxen|
# User facts
boxen.vm.synced_folder ".boxen", "/Users/vagrant/.boxen"
boxen.vm.synced_folder "config", "/opt/boxen/config"
boxen.vm.synced_folder "our-boxen", "/opt/boxen/repo", type: "nfs"
boxen.vm.provision "shell", path: "./provision/setup-boxen.sh",
args: [
(ENV['GH_TOKEN'] || ""),
(ENV['UNLOCK_BOXEN'] || ""),
(ENV['NO_PULL'] || "")
],
privileged: false
end
end