-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
62 lines (47 loc) · 1.87 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
## Still have boilerplate comments:
# -*- mode: ruby -*-
# vi: set ft=ruby :
# For examples on parameterizing see:
# http://stackoverflow.com/questions/13065576/override-vagrant-configuration-settings-locally-per-dev
Vagrant.configure(2) do |config|
# Ubuntu Server 16.04 LTS
config.vm.box = 'box-cutter/ubuntu1604-desktop'
config.vm.provider 'virtualbox' do |vb|
end
# Install the latest version of Chef.
# For more information see https://github.com/chef/vagrant-omnibus
#
config.omnibus.chef_version = :latest
# Enabling the Berkshelf plugin.
config.berkshelf.enabled = true
# Provision with Chef Zero
config.vm.provision :chef_zero do |chef|
# Specify the local paths where Chef data is stored
chef.cookbooks_path = ['cookbooks', 'site-cookbooks']
chef.data_bags_path = 'data_bags'
chef.nodes_path = 'nodes'
chef.roles_path = 'roles'
# Add a recipe
chef.add_recipe 'main::default'
end
# See: http://stackoverflow.com/a/20431791
# Seealso: http://friendsofvagrant.github.io/v1/docs/config/vm/define.html
config.vm.define 'jali' do |jali|
jali.vm.synced_folder 'C:\git', '/git'
# http://stackoverflow.com/a/37064253/2240669
jali.vm.network :forwarded_port, host: 5858, guest: 5858
jali.vm.provider 'virtualbox' do |vb|
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com/v2/virtualbox/configuration.html
vb.name = 'jali'
# Display the VirtualBox GUI when booting the machine
vb.gui = true
# Customize the amount of memory on the VM (in MB):
# vb.memory = '2048'
# Customize the amount of video memory on the VM (in MB):
# vb.customize ['modifyvm', :id, '--vram', '128'']
# See: https://forums.virtualbox.org/viewtopic.php?f=6&t=77731
vb.customize ['setextradata', :id, 'GUI/ScaleFactor', '1.25']
end
end
end