Mitchell Hashimoto
acbc0d4b28
Namespace provisioner templates
2012-01-07 21:55:08 -08:00
Mike Fiedler
fbf5237de2
missing require tempfile, and fixed a typo
2012-01-07 21:18:55 -08:00
Mitchell Hashimoto
d07f0f8dd2
Support VirtualBox 4.0
2012-01-07 21:16:40 -08:00
Mitchell Hashimoto
a94cf520c6
Log4r levels need to be defined before we can check for them
2012-01-07 21:16:40 -08:00
Mitchell Hashimoto
7954d4cba8
Driver forwarding to 4.1 works properly
2012-01-07 21:16:40 -08:00
Mitchell Hashimoto
5157cccaef
Delegate all API methods to the proper version driver
2012-01-07 21:16:40 -08:00
Mitchell Hashimoto
767ee2509e
VirtualBox base class for the driver.
2012-01-07 21:16:40 -08:00
Mitchell Hashimoto
cab625c06c
We should verify VirtualBox is detected before looking for the old VM
2012-01-07 21:16:28 -08:00
Mike Fiedler
e05bfb7efc
missing bracket closure fails rake tests
2012-01-07 21:16:28 -08:00
Mitchell Hashimoto
87b1a6660d
Handle invalid log levels more gracefully
2012-01-07 21:16:22 -08:00
Mitchell Hashimoto
a7bde74cf3
VirtualBox driver can handle Windows-style newlines
2012-01-07 21:16:09 -08:00
Mitchell Hashimoto
4b52c39733
More robust VBOX_INSTALL_PATH handling on Windows
2012-01-07 21:15:57 -08:00
Mitchell Hashimoto
75539c2abe
Default host class is the base class
2012-01-07 13:13:17 -08:00
Mitchell Hashimoto
d9f5cbce3e
Initialize the connection ivar for SSH
2012-01-07 11:57:46 -08:00
Mitchell Hashimoto
7fce25e858
Show `attempting graceful shutdown` message from action, not guest
2012-01-07 11:44:53 -08:00
Mitchell Hashimoto
0f580fd2c0
Re-use SSH connection
2012-01-07 11:38:27 -08:00
Mitchell Hashimoto
7d56dbb755
Uploaded files now use temporary files rather than StringIO
2012-01-06 21:42:25 -08:00
Mitchell Hashimoto
275ddae646
Convert everything to the new SSH API
2012-01-06 20:07:32 -08:00
Mitchell Hashimoto
7bdbec4229
Start switching the old SSH API to the new one
2012-01-06 20:07:32 -08:00
Mitchell Hashimoto
d094432238
No longer require `forwarded_port_key` setting, its gone
2012-01-06 20:07:32 -08:00
Mitchell Hashimoto
faaa763d50
SSH connect is now SSH `exec`
2012-01-06 20:07:32 -08:00
Mitchell Hashimoto
19c1340e40
Vagrant::SSH no longer handles actual communication with the VM
2012-01-06 20:07:32 -08:00
Mitchell Hashimoto
8577935121
Syntaxerror
2012-01-06 20:07:31 -08:00
Mitchell Hashimoto
3ffa533011
ssh-config now uses the new ssh_info method
2012-01-06 20:07:31 -08:00
Mitchell Hashimoto
7ed9f8bd73
SSH communication should inherit from Base
2012-01-06 20:07:31 -08:00
Mitchell Hashimoto
47a368fbfd
VM raises SSHPortNotDetected if ssh_info can't get the port
...
Also, I updated the wording on that error message a bit since it
turns out that it is possible through user error that there will
be no SSH port.
2012-01-06 20:07:31 -08:00
Mitchell Hashimoto
acaabd5aa3
Remove forwarded_port_key/destination from config, replace with guest_port
2012-01-06 20:07:31 -08:00
Mitchell Hashimoto
00a31ff27b
Communication abstraction. Started SSH.
2012-01-06 20:07:31 -08:00
Mitchell Hashimoto
396beb9faf
Require tempfile in shell provisioner
2012-01-06 17:36:51 -08:00
Mitchell Hashimoto
67aa4c3819
Get rid of unavailable API
2012-01-05 23:12:28 -08:00
Mitchell Hashimoto
586f506eff
Fix a terrible typo that causes vagrant ssh to fail
2012-01-05 23:08:20 -08:00
Mitchell Hashimoto
d0c85afd47
IdentityFile works again in ssh-config [GH-626]
2012-01-05 23:01:35 -08:00
Mitchell Hashimoto
79e8a6ef0a
Port forwarding definitions with the same guest port will override earlier
2012-01-05 22:58:38 -08:00
Mitchell Hashimoto
e85095d1bf
Subprocess uses readpartial on IO for Windows [GH-610]
...
Windows doesn't support read_nonblock.
2012-01-05 23:48:30 -08:00
Mitchell Hashimoto
467542ef8d
Use VBOX_INSTALL_PATH on Windows to find VBoxManage [GH-609]
2012-01-05 23:12:17 -08:00
Mitchell Hashimoto
323663c4fb
Handle MacPorts strange VirtualBox version formatting [GH-619]
2012-01-04 21:46:46 -08:00
Mitchell Hashimoto
fc3bb6ca92
Code style for RedHat network configurations
2012-01-04 21:43:14 -08:00
Mike Fiedler
a04fce880c
Changes to enable rhel/centos-style bridged & hostonly networking
2012-01-04 21:39:36 -08:00
Mitchell Hashimoto
026a551496
`vagrant ssh -p` is now plain mode
2012-01-04 21:28:30 -08:00
Mitchell Hashimoto
a6c3551064
Merge pull request #621 from bitprophet/clean-ssh-option
...
Allow 'vagrant ssh' to strip most non-port options.
2012-01-04 21:20:12 -08:00
Mitchell Hashimoto
ef1037ff7c
Cleanup puppet provisioner even more
2012-01-04 19:26:25 -08:00
Mitchell Hashimoto
36a59a89fc
Merge pull request #620 from LeftyBC/master
...
Fixup for variable scoping in the puppet provisioner
2012-01-04 19:10:35 -08:00
Elliot Pahl
9c89ed9c06
Fix vm state check in ssh-config.
2012-01-04 19:08:19 -08:00
Colin Moller
0466d76bd8
Merge remote branch 'mitchellh/master'
2012-01-04 16:50:22 -08:00
Mitchell Hashimoto
09e11ae792
Fix forwarded port map which still references "name"
2012-01-04 16:47:03 -08:00
Colin Moller
b572b7dbd6
Merge remote branch 'mitchellh/master'
2012-01-04 16:21:12 -08:00
Mitchell Hashimoto
175d95fcf1
Fix regex syntax for 1.8
2012-01-04 16:18:11 -08:00
Jeff Forcier
e646df5655
Tweak a variable name & help string
2012-01-04 12:47:53 -08:00
Jeff Forcier
72b609f0a6
Allow 'vagrant ssh' to strip most non-port options.
...
Adds a -p flag to 'vagrant ssh' which strips out username, private key
args, allowing the local user's ssh settings to take full effect.
2012-01-04 12:37:23 -08:00
Colin Moller
0f5f607767
Fix scoping for env and config.vm variables in the puppet provisioner.
2012-01-04 12:28:18 -08:00
Mitchell Hashimoto
a1b66f82aa
Consistently generate names for forwarded ports.
...
To do this, I convert the ports to base 32 strings in the format
of "guestport-hostport." This makes a consistent mapping we can use
to look up if the forwarded port is set.
2012-01-03 10:34:35 -08:00
Mitchell Hashimoto
b45286f780
Don't bother enabling/configuring network adapters if there are none
2012-01-03 10:24:31 -08:00
Mitchell Hashimoto
2d1ed88bcd
Forwarded ports no longer require a name paramter
2012-01-03 10:22:42 -08:00
Mitchell Hashimoto
aac9bb5ec5
Make adapter 1-based for forwarded ports as well
2012-01-03 10:11:07 -08:00
Mitchell Hashimoto
7982f01f2e
Check for adapter collisions
2012-01-03 09:34:32 -08:00
Mitchell Hashimoto
20edb5d05a
Error if no available network adapters are found
2012-01-03 08:01:26 -08:00
Mitchell Hashimoto
09945fe4f9
Better documentation and error messages for unsupported guest features
2012-01-03 07:50:01 -08:00
Mitchell Hashimoto
99d3565132
Delete old networking actions
2012-01-02 19:53:29 -08:00
Mitchell Hashimoto
97f7fa633d
Re-implement how networking is done internally
2012-01-02 19:51:38 -08:00
Mitchell Hashimoto
76a77432b8
Clear all network adapters during the boot process
2012-01-01 22:02:30 -08:00
Mitchell Hashimoto
22d042cb94
Vagrant now asks what adapter to bridge to
2012-01-01 00:05:47 -08:00
Mitchell Hashimoto
567c09df21
Allow a MAC address to be specified for bridges
2011-12-31 19:13:51 -08:00
Mitchell Hashimoto
c48a31d6bd
Fix template paths for other guests
2011-12-31 19:08:56 -08:00
Mitchell Hashimoto
474ac3a63d
Enabling bridged networks on Debian
2011-12-31 11:53:04 -08:00
Mitchell Hashimoto
42883cbd20
Bridged networking basics.
2011-12-31 11:35:09 -08:00
Mitchell Hashimoto
8f3a7ce22d
Rename Network action to HostOnlyNetwork
2011-12-31 01:04:06 -08:00
Mitchell Hashimoto
f7125b1dd7
Default host only adapters to #1 again
2011-12-31 00:55:37 -08:00
Mitchell Hashimoto
77b915f06a
Logging, and prepare code to automatically find next available adapter
2011-12-31 00:34:08 -08:00
Mitchell Hashimoto
b36e3c447e
Add a deprecation error for the old style of configuring host only networks
2011-12-30 23:39:16 -08:00
Mitchell Hashimoto
b5b3805157
Add validation once again for host only networks
2011-12-31 10:55:37 +09:00
Mitchell Hashimoto
c64f5e8d05
Refactor the Network action a bit
2011-12-31 05:03:17 +09:00
Mitchell Hashimoto
3f0bd6def4
Fix regex warning for Ruby 1.8.7
2011-12-31 04:22:44 +09:00
Mitchell Hashimoto
b66755cf26
Proper number of arguments for Puppet provisioner
2011-12-31 04:21:17 +09:00
Mitchell Hashimoto
0d2cf4bbe7
Upgrade to ChildProcess 0.2.4 for LaunchError
2011-12-26 19:55:10 -08:00
Mitchell Hashimoto
7e4d652702
Make export in general VBoxManage friendly
2011-12-26 19:06:44 -08:00
Mitchell Hashimoto
fbe984b32d
Check for package files before any exports or anything [GH-597]
2011-12-26 18:48:38 -08:00
Mitchell Hashimoto
6a1864011d
Require things as they're needed
2011-12-26 18:36:18 -08:00
Mitchell Hashimoto
ab0276c4a9
VM::Modify no longer exists
2011-12-26 18:35:19 -08:00
Mitchell Hashimoto
e0998b0b0f
Use proper UI with VM
2011-12-26 18:14:09 -08:00
Mitchell Hashimoto
4428daf344
A regex string can be passed to commands in Multi-VM
2011-12-26 18:12:02 -08:00
Mitchell Hashimoto
8f522225a1
Fix issue that could cause config loader to fail if no block given to a subvm
2011-12-26 18:07:39 -08:00
Mitchell Hashimoto
ad7f4c79ad
Make requiring a single VM target in a command more DRY
2011-12-26 17:59:18 -08:00
Mitchell Hashimoto
0887a18079
Make some fixes to get tests passing on Ruby 1.8.7
2011-12-26 17:45:55 -08:00
Mitchell Hashimoto
fd331ee785
Util::Busy calls the callbacks in reverse order
2011-12-26 17:03:29 -08:00
Mitchell Hashimoto
bfc85d7f14
Handle interrupts well with VirtualBox.
2011-12-26 17:00:41 -08:00
Mitchell Hashimoto
f65a6c3c6f
`vagrant ssh -c` stderr now goes to stderr on the host as well
2011-12-26 10:03:12 -08:00
Mitchell Hashimoto
e07280593d
`vagrant ssh -c` will now exit with the same exit status of the command [GH-598]
2011-12-26 09:58:10 -08:00
Mitchell Hashimoto
72b249fd19
Do port forwarding threshold check in the `call` method
2011-12-25 15:36:15 -08:00
Mitchell Hashimoto
ca938f041c
Check currently forwarded ports when looking for collisions [GH-606]
2011-12-25 13:13:01 -08:00
Mitchell Hashimoto
81ad053f8a
Check for port collisions after clearing forwarded ports on `up`
2011-12-25 10:18:49 -08:00
Mitchell Hashimoto
d80ff0a27f
Pull out port collision detection/correction into the CheckPortCollision middleware
2011-12-25 10:13:08 -08:00
Mitchell Hashimoto
e870d1b29e
Discarding state works with VBoxManage
2011-12-25 09:53:54 -08:00
Mitchell Hashimoto
76f605f08d
Nice error message if port collisions are detected on `resume` [GH-602]
2011-12-25 09:48:49 -08:00
Mitchell Hashimoto
cc9abc8b9b
Fix up some subprocess comments
2011-12-22 21:55:57 -08:00
Mitchell Hashimoto
c0fabbe2bd
Fix interrupted? call in boot
2011-12-22 21:50:20 -08:00
Mitchell Hashimoto
963bdff9fd
Use Vagrant::Util::Subprocess for acceptance tests
2011-12-22 21:46:43 -08:00
Mitchell Hashimoto
b72b70a845
DataStore: Remove the file_path check in commit
2011-12-22 21:20:31 -08:00
Mitchell Hashimoto
40fdab3de8
DataStore tests and slight modifications
2011-12-22 21:18:59 -08:00
Mitchell Hashimoto
40689b556b
Logging in the DataStore class
2011-12-22 20:46:03 -08:00
Mitchell Hashimoto
3cd262ed75
Unit tests for Vagrant::Action::Builder
2011-12-22 20:17:45 -08:00