vagrant/config/default.rb

39 lines
1.2 KiB
Ruby
Raw Normal View History

Vagrant::Config.run do |config|
2010-02-02 06:14:40 +00:00
# default config goes here
config.vagrant.dotfile_name = ".vagrant"
config.vagrant.host = :detect
2011-07-21 21:55:03 +00:00
config.vagrant.ssh_session_cache = false
config.ssh.username = "vagrant"
config.ssh.host = "127.0.0.1"
config.ssh.forwarded_port_key = "ssh"
config.ssh.forwarded_port_destination = 22
config.ssh.max_tries = 100
config.ssh.timeout = 7
2010-08-24 04:33:14 +00:00
config.ssh.private_key_path = File.expand_path("keys/vagrant", Vagrant.source_root)
config.ssh.forward_agent = false
config.ssh.forward_x11 = false
2010-02-02 06:14:40 +00:00
config.vm.auto_port_range = (2200..2250)
config.vm.box_ovf = "box.ovf"
2010-07-24 05:06:50 +00:00
config.vm.box_url = nil
config.vm.base_mac = nil
config.vm.forward_port("ssh", 22, 2222, :auto => true)
config.vm.boot_mode = "vrdp"
config.vm.system = :linux
2010-02-12 08:03:53 +00:00
config.vm.customize do |vm|
2010-09-20 14:55:13 +00:00
# Make VM name the name of the containing folder by default
vm.name = File.basename(config.env.cwd) + "_#{Time.now.to_i}"
end
# Share the root folder. This can then be overridden by
# other Vagrantfiles, if they wish.
config.vm.share_folder("v-root", "/vagrant", ".")
config.nfs.map_uid = :auto
config.nfs.map_gid = :auto
config.package.name = 'package.box'
2010-02-12 08:03:53 +00:00
end