From baa2041c3793acd6b393a9130d2de8d6526abe2a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 21 Jan 2011 16:02:12 -0800 Subject: [PATCH] FreeBSD system --- CHANGELOG.md | 1 + lib/vagrant/systems.rb | 1 + lib/vagrant/systems/freebsd.rb | 1 + lib/vagrant/vm.rb | 9 +++++---- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd3563815..755dd93bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Internal SSH through net-ssh now uses `IdentitiesOnly` thanks to upstream net-ssh fix. - Fix issue causing warnings to show with `forwardx11` enabled for SSH. [GH-279] + - FreeBSD support for host only networks, NFS, halting, etc. [GH-275] ## 0.7.0 (January 19, 2011) diff --git a/lib/vagrant/systems.rb b/lib/vagrant/systems.rb index 6f97765b4..57a689548 100644 --- a/lib/vagrant/systems.rb +++ b/lib/vagrant/systems.rb @@ -1,6 +1,7 @@ # These can't be autoloaded because they have to register functionality # with Vagrant core. require 'vagrant/systems/base' +require 'vagrant/systems/freebsd' require 'vagrant/systems/linux' require 'vagrant/systems/solaris' diff --git a/lib/vagrant/systems/freebsd.rb b/lib/vagrant/systems/freebsd.rb index 4f7460157..08217349b 100644 --- a/lib/vagrant/systems/freebsd.rb +++ b/lib/vagrant/systems/freebsd.rb @@ -43,6 +43,7 @@ module Vagrant end end + # TODO: Error/warning about this. # def mount_shared_folder(ssh, name, guestpath) # ssh.exec!("sudo mkdir -p #{guestpath}") # # Using a custom mount method here; could use improvement. diff --git a/lib/vagrant/vm.rb b/lib/vagrant/vm.rb index 691f35361..397b29403 100644 --- a/lib/vagrant/vm.rb +++ b/lib/vagrant/vm.rb @@ -58,10 +58,11 @@ module Vagrant elsif system.is_a?(Symbol) # Hard-coded internal systems mapping = { - :debian => Systems::Debian, - :gentoo => Systems::Gentoo, - :redhat => Systems::Redhat, - :linux => Systems::Linux, + :debian => Systems::Debian, + :freebsd => Systems::FreeBSD, + :gentoo => Systems::Gentoo, + :redhat => Systems::Redhat, + :linux => Systems::Linux, :solaris => Systems::Solaris }