2010-02-10 07:08:23 +00:00
|
|
|
Vagrant::Config.run do |config|
|
2010-02-02 06:14:40 +00:00
|
|
|
# default config goes here
|
2010-03-05 07:50:08 +00:00
|
|
|
config.vagrant.dotfile_name = ".vagrant"
|
2010-02-15 21:55:42 +00:00
|
|
|
config.vagrant.home = "~/.vagrant"
|
2010-07-11 05:07:10 +00:00
|
|
|
config.vagrant.host = :detect
|
2010-02-10 21:59:25 +00:00
|
|
|
|
2010-02-10 07:08:23 +00:00
|
|
|
config.ssh.username = "vagrant"
|
2010-02-02 06:14:40 +00:00
|
|
|
config.ssh.host = "localhost"
|
2010-05-25 01:38:22 +00:00
|
|
|
config.ssh.port = 22
|
2010-02-03 08:02:12 +00:00
|
|
|
config.ssh.forwarded_port_key = "ssh"
|
2010-02-02 06:14:40 +00:00
|
|
|
config.ssh.max_tries = 10
|
2010-03-11 23:56:44 +00:00
|
|
|
config.ssh.timeout = 30
|
2010-08-24 04:33:14 +00:00
|
|
|
config.ssh.private_key_path = File.expand_path("keys/vagrant", Vagrant.source_root)
|
2010-07-09 05:38:14 +00:00
|
|
|
config.ssh.forward_agent = false
|
2010-02-02 06:14:40 +00:00
|
|
|
|
2010-05-27 19:34:08 +00:00
|
|
|
config.vm.auto_port_range = (2200..2250)
|
2010-02-23 08:05:41 +00:00
|
|
|
config.vm.box_ovf = "box.ovf"
|
2010-07-24 05:06:50 +00:00
|
|
|
config.vm.box_url = nil
|
2010-03-01 08:48:14 +00:00
|
|
|
config.vm.base_mac = "0800279C2E42"
|
2010-05-28 00:31:36 +00:00
|
|
|
config.vm.forward_port("ssh", 22, 2222, :auto => true)
|
2010-02-12 08:03:53 +00:00
|
|
|
config.vm.disk_image_format = 'VMDK'
|
2010-03-10 22:58:41 +00:00
|
|
|
config.vm.provisioner = nil
|
2010-03-15 19:33:03 +00:00
|
|
|
config.vm.shared_folder_uid = nil
|
|
|
|
config.vm.shared_folder_gid = nil
|
2010-04-09 07:11:02 +00:00
|
|
|
config.vm.boot_mode = "vrdp"
|
2010-04-25 08:46:51 +00:00
|
|
|
config.vm.system = :linux
|
2010-02-12 08:03:53 +00:00
|
|
|
|
2010-09-20 14:47:40 +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
|
2010-10-05 05:37:38 +00:00
|
|
|
vm.name = File.basename(config.env.cwd) + "_#{Time.now.to_i}"
|
2010-09-20 14:47:40 +00:00
|
|
|
end
|
|
|
|
|
2010-06-04 05:19:42 +00:00
|
|
|
# Share the root folder. This can then be overridden by
|
|
|
|
# other Vagrantfiles, if they wish.
|
|
|
|
config.vm.share_folder("v-root", "/vagrant", ".")
|
|
|
|
|
2010-07-16 06:02:31 +00:00
|
|
|
config.nfs.map_uid = :auto
|
|
|
|
config.nfs.map_gid = :auto
|
|
|
|
|
2010-07-24 16:23:55 +00:00
|
|
|
config.package.name = 'package.box'
|
2010-02-12 08:03:53 +00:00
|
|
|
end
|