Created
May 10, 2015 10:44
-
-
Save raags/9672366ccd2abcde9b27 to your computer and use it in GitHub Desktop.
Vagrant global config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
AutoNetwork.default_pool = '172.16.0.0/24' | |
Vagrant.configure('2') do |config| | |
config.vm.provider :virtualbox do |vbox| | |
vbox.memory = 512 | |
vbox.cpus = 1 | |
end | |
config.vm.box = "base" | |
if Vagrant.has_plugin?("vagrant-auto_network") | |
config.vm.network :private_network, :auto_network => true | |
end | |
if Vagrant.has_plugin?("vagrant-hostmanager") | |
config.hostmanager.enabled = true | |
config.hostmanager.manage_host = true | |
config.hostmanager.ignore_private_ip = false | |
config.hostmanager.include_offline = true | |
end | |
if Vagrant.has_plugin?("vagrant-cachier") | |
config.cache.scope = :box | |
config.cache.synced_folder_opts = { | |
type: :nfs, | |
mount_options: ['rw', 'vers=3', 'tcp', 'nolock'] | |
} | |
end | |
if Vagrant.has_plugin?("vagrant-proxyconf") | |
config.proxy.http = "http://172.16.0.1:8123/" | |
config.proxy.https = "http://172.16.0.1:8123/" | |
config.proxy.no_proxy = "localhost,127.0.0.1,.example.com" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment