-
Notifications
You must be signed in to change notification settings - Fork 106
/
Vagrantfile
71 lines (59 loc) · 2.95 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
63
64
65
66
67
68
69
70
71
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
# Use box from Vagrant Cloud
config.vm.box = "AndrewDryga/vagrant-box-osx"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended when using box from Atlas.
# config.vm.box_check_update = false
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# config.vm.network "forwarded_port", guest: 80, host: 8080
# Create a private network, which allows host-only access to the machine
# using a specific IP. This is required to create NFS shared folder.
# config.vm.network "private_network", ip: "192.168.99.33"
# Share an additional folder to the guest VM via Network Shared Folder.
# You can find it at ```/vagrant``` on guest VM.
# config.vm.synced_folder ".", "/vagrant",
# id: "vagrant-root",
# :nfs => true,
# :mount_options => ['nolock,vers=3,udp,noatime,actimeo=1,resvport'],
# :export_options => ['async,insecure,no_subtree_check,no_acl,no_root_squash']
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine. You might want to turn 3D accelerating to speed-up VM GUI.
# vb.gui = true
# Customize the amount of memory on the VM:
# vb.memory = "4096"
# Customize motherboard chipset
# vb.customize ["modifyvm", :id, "--chipset", "ich9"]
# Customize NAT DNS
# vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
# vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
# Set resolution on macOS
# Values: 0 = 640x480, 1 = 800x600, 2 = 1024x768, 3 = 1280x1024, 4 = 1440x900, 5 = 1920x1200
# vb.customize ["setextradata", :id, "VBoxInternal2/EfiGopMode", "5"]
# vb.customize ["setextradata", :id, "CustomVideoMode1", "1920x1080x32"]
# vb.customize ["setextradata", :id, "GUI/CustomVideoMode1", "1920x1080x32"]
# This one is specific to some Linux hosts to be able to change the resolution
# vb.customize ["setextradata", :id, "VBoxInternal2/EfiGraphicsResolution", "1920x1080x32"]
end
# Enable provisioning with a shell script.
# config.vm.provision "shell", inline: <<-SHELL
# sudo chown -R vagrant:admin /Library/Caches/Homebrew
# brew update
# npm update
# echo 'vagrant' | brew cask update
# sudo /usr/sbin/DevToolsSecurity --enable
# SHELL
# Enable provisioning with Puppet stand alone. Puppet manifests
# are contained in a directory path relative to this Vagrantfile.
# You will need to create the manifests directory and a manifest in
# the file default.pp in the manifests_path directory.
#
# config.vm.provision "puppet" do |puppet|
# puppet.manifests_path = "manifests"
# puppet.manifest_file = "default.pp"
# end
end