-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
37 lines (29 loc) · 987 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
37
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
# You'll need to build your own box:
# https://github.com/timsutton/osx-vm-templates
config.vm.box = 'osx/el-capitan'
# Vagrant doesn't know how to do this with OS X
config.ssh.insert_key = false
config.vm.provider 'virtualbox' do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = true
# Customize the amount of memory on the VM:
vb.memory = 2048
# Required for nfs
config.vm.network :private_network, ip: '10.1.1.100'
# See: https://github.com/timsutton/osx-vm-templates#shared-folders
config.vm.synced_folder '.', '/vagrant', type: 'nfs'
end
# Run installer but skip running short-stack
config.vm.provision :shell,
path: 'install.sh',
args: "'--skip-short-stack'",
privileged: false,
keep_color: true
# Run short-stack directly
config.vm.provision :ansible do |ansible|
ansible.playbook = 'stack.yml'
end
end