-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
41 lines (34 loc) · 1.11 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
40
41
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
############################################################
# TODO: Update to your desired values
############################################################
local_share = '/Volumes/Scribe'
box_ip = '192.168.252.200'
############################################################
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
end
# TODO: Can I check if I am only first
config.vm.box_check_update = false
config.vm.box = "bento/ubuntu-14.04"
config.vm.network "private_network", ip: "#{ box_ip }"
config.vm.synced_folder "#{ local_share }", "/srv"
# Configured to be a small foot print here.
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "256"
end
# Do the chef provisioning
config.vm.provision :chef_zero do |chef|
# Paths to your cookbooks (on the host)
chef.cookbooks_path = ["cookbooks"]
chef.nodes_path = 'nodes'
# Add chef recipes
recipes = [ 'sharebox' ]
recipes.each do | recipe |
chef.add_recipe recipe
end
end
end