Mitchell Hashimoto
93d241f4ce
Puppet is now RVM friendly
2011-01-12 16:28:45 -08:00
Mitchell Hashimoto
8482eeff0b
net-ssh-shell support for shell-based SSH interactions
2011-01-12 15:21:54 -08:00
Mitchell Hashimoto
a4a02675ad
Add a nice full error message for the old-style provisioner setting
2011-01-12 01:19:21 -08:00
Mitchell Hashimoto
047f9970fe
Support hash based options for provisioners
2011-01-12 01:02:53 -08:00
Mitchell Hashimoto
4e5a7aa6bf
Fix order-dependent test
2011-01-12 00:14:16 -08:00
Mitchell Hashimoto
658affe8cd
Provisioner config tests, fixed some bugs
2011-01-11 23:11:51 -08:00
Mitchell Hashimoto
a91ad4d89f
Fixed provisioners to the new conventions. Tests passing!
2011-01-11 22:37:09 -08:00
Mitchell Hashimoto
cddccab9ae
Provision action works again
2011-01-11 22:13:09 -08:00
Mitchell Hashimoto
85b8ccc2ec
Provisioners now register themselves with their shortcut name
2011-01-11 19:52:55 -08:00
Mitchell Hashimoto
766607db49
Raise an error message if host only networking is not supported
2011-01-09 13:34:37 -08:00
Mitchell Hashimoto
d00f314eb9
Systems can now respond to `distro_dispatch` to return specific distro systems
2011-01-09 13:06:26 -08:00
Mitchell Hashimoto
25ea67a9f7
Get rid of Ruby 1.8.7 warning in tests
2011-01-08 21:22:16 -08:00
Mitchell Hashimoto
8ce95318c7
Remove check for OSE version, since with VirtualBox 4 this distinction no longer exists.
2011-01-07 01:32:21 -08:00
Mitchell Hashimoto
9a158cf45a
Set VAGRANT_HOME env var to change vagrant home directory
2011-01-06 19:21:23 -08:00
Mitchell Hashimoto
a5d8193982
Allow multiple Vagrant::Config.run in a single Vagrantfile again
2011-01-06 19:05:31 -08:00
Mitchell Hashimoto
b8c84b67b7
Vagrantfiles are loaded only once, instead of 4+ times [closes GH-238]
2011-01-06 19:00:29 -08:00
Mitchell Hashimoto
e258395346
Rewrite of Vagrant::Config, on the path to fix bug with multiple loading Vagrantfiles
2011-01-06 18:35:58 -08:00
James Turnbull
3849355ef6
Basic Puppet Server provisioner
2011-01-06 13:33:22 -08:00
Mitchell Hashimoto
496f68fd6a
Move SSH::Session to its own file
2011-01-05 16:45:05 -08:00
Petyo Ivanov
b9e24090e9
Add X11 ssh forwarding option (off by default).
2011-01-04 20:17:04 -08:00
Mitchell Hashimoto
e0c716e454
Fix automount select to accept key/val instead of just val
2011-01-04 20:10:34 -08:00
Mitchell Hashimoto
c1e0504c66
Improve the file downloader test to use a real file
2010-12-31 22:00:11 -06:00
Mitchell Hashimoto
fb8f0c010b
Reload config after downloading box during `up` [closes GH-231]
2010-12-31 21:41:05 -06:00
Mitchell Hashimoto
e12d96d4df
Only automount NFS folders which have guest path specified
2010-12-31 02:24:49 -06:00
Mitchell Hashimoto
c1be64ae61
Shared folders with no guest path are not automounted [closes GH-184]
2010-12-31 02:19:27 -06:00
Mitchell Hashimoto
82d26f29e8
Tests passing for shared folder mount changes.
2010-12-30 21:06:21 -06:00
Mitchell Hashimoto
681c4a1233
Fix tests dealing with VirtualBox 4 version checks
2010-12-30 21:04:23 -06:00
Mitchell Hashimoto
e19788701e
Don't disable networks on halt/destroy.
2010-12-24 19:02:11 -08:00
Mitchell Hashimoto
c32ab0442c
Change the mechanism by which useless host only networks are detected and destroyed
2010-12-24 18:57:44 -08:00
Mitchell Hashimoto
4d8e3dc1bf
Make this test actually test something
2010-12-24 18:41:18 -08:00
Mitchell Hashimoto
2018fd8645
"vbox-prev" bug still exists, but filename changes for VB4
2010-12-24 18:35:46 -08:00
Mitchell Hashimoto
e4488c415e
Update destroy to use new API for VB4
2010-12-24 15:19:31 -08:00
Mitchell Hashimoto
2358130c0e
Show error if host only networking on Windows
2010-12-21 19:52:41 -08:00
Mitchell Hashimoto
e98db8dc86
Determine SSH on main thread for up? to fix issues with multi-thread access on JRuby
2010-12-19 10:27:07 -08:00
Mitchell Hashimoto
59ae5747d0
Use timeout library instead of threads to check for VM boot
2010-12-18 18:50:59 -08:00
Brian P O'Rourke
e1ed00f14c
Enumerate vms according to definiton order.
2010-12-14 22:24:02 -08:00
Mitchell Hashimoto
d0e3cf1210
config.puppet.options can be a string as well
2010-12-14 21:57:12 -08:00
Brice Figureau
6b46949550
Allow passing options to the Puppet provisioner
...
This allows for instance to pass the --modulepath options like this:
config.vm.puppet.options = ["--modulepath","modules"]
Which would call puppet with "--modulepath modules".
Signed-off-by: Brice Figureau <brice@daysofwonder.com>
2010-12-14 21:53:57 -08:00
Brice Figureau
446ab32e0e
Allow to recursively include files when packaging a box
...
This allows to bundle with a box a set of puppet manifests or chef cookbooks.
This supports both shell globbing and recursive copy of full directories.
Usage:
vagrant package ... --include=manifests
This would bundle the whole manifests/ directory
vagrant package ... --include=id*
This would bundle all files with prefix id in the produced box
Signed-off-by: Brice Figureau <brice@daysofwonder.com>
2010-12-14 21:51:33 -08:00
James Turnbull
6548bc9324
Adds a basic Puppet provisioner to Vagrant
...
This uses the Puppet binary and assumes a .pp file will be present
on the host machine.
By default it looks for manifests in the `manifests` directory (in the same root as
wherever your Vagrantfile is located). The default file uses the name of the box
being configured, for example `lucid.pp`. Both options are configurable.
2010-12-07 16:57:00 -08:00
Mitchell Hashimoto
54f86f236c
Test to verify solaris system
2010-12-07 16:52:18 -08:00
Mitchell Hashimoto
331e0841e5
Box collection reloads after downloading during CheckBox. [closes GH-229]
2010-11-30 20:19:24 -08:00
Ches Martin
8bff03fb80
BaseVMNotFoundError -> BaseVMNotFound and test [closes GH-200]
2010-11-03 21:35:39 -07:00
Mitchell Hashimoto
ef50361f95
Nicer error message when box is not found. [closes GH-195]
2010-10-21 17:50:41 -07:00
Mitchell Hashimoto
39407694e3
Validate only certain command sequences [closes GH-188]
2010-10-13 18:59:25 -07:00
Mitchell Hashimoto
82d73ebe3c
General validation middleware
2010-10-13 18:40:12 -07:00
Mitchell Hashimoto
6337cefb8b
Disable Vagrantfile validation completely on load. see coming commits...
2010-10-12 21:08:33 -07:00
Mitchell Hashimoto
341e7916f4
Port collision type mismatches fixed. [closes GH-185]
2010-10-09 01:21:52 -07:00
Mitchell Hashimoto
ebf1fa2fb1
Check if file exists on root path traversal [closes GH-182]
2010-10-08 18:23:38 -07:00
Mitchell Hashimoto
f90016bb6f
Only validate on the second-pass of loading configuration
2010-10-08 10:52:34 -07:00
Mitchell Hashimoto
5fcf10d6cd
Validations to assure base MAC address is set
2010-10-08 10:44:19 -07:00
Mitchell Hashimoto
c6b0fae318
Load sub-VM configuration on first-pass, allowing box loading for sub-VMs. [closes GH-166] [closes GH-181]
2010-10-08 10:34:33 -07:00
Mitchell Hashimoto
48e5f4fb86
Vagrantfiles with only one `config.vm.define` are now considered multi-VM.
2010-10-08 09:50:34 -07:00
Mitchell Hashimoto
ba9cb19808
Configuration only validates on final Vagrantfile proc, allowing multi-VM to work correctly
2010-10-08 09:44:17 -07:00
Mitchell Hashimoto
e36a9d3a0c
Nice error message given if ".vagrant" is a directory and therefore can't be accessed. [closes GH-172]
2010-10-06 18:57:39 -07:00
Mitchell Hashimoto
12b769ce14
Removed final global test helper from test/test_helper.rb
2010-10-03 18:48:41 -07:00
Mitchell Hashimoto
3fe785ab72
Removed `mock_vm` test helper, which is unnecessary
2010-10-03 18:45:09 -07:00
Mitchell Hashimoto
e5be4cc2b0
Removed unused test code
2010-10-03 18:37:03 -07:00
Mitchell Hashimoto
eaaf55ea8a
`up --no-provision` works again. This disables provisioning during the process.
2010-10-03 18:34:33 -07:00
Mitchell Hashimoto
cf823cadb5
Action warden doesn't do recovery process on `SystemExit` exceptions, allowing double ctrl-C to work properly again.
2010-10-01 10:08:38 -07:00
Mitchell Hashimoto
3e54150f71
Box add checks if box exists before the download [closes GH-170]
2010-10-01 09:24:58 -07:00
Mitchell Hashimoto
61314c5e21
Only check for box directory if it is set during unpackage recovery [related to GH-170]
2010-10-01 09:20:18 -07:00
Mitchell Hashimoto
bad251a20d
NFS no longer attempts to clean exports file if VM is not created, which caused a stack trace during recovery.
2010-09-30 01:16:45 -07:00
Mitchell Hashimoto
ed645417c7
Basic validation added for Chef configuration (both solo and server).
2010-09-30 01:09:36 -07:00
Mitchell Hashimoto
465392f99c
config.vagrant validation tests
2010-09-30 00:55:00 -07:00
Mitchell Hashimoto
588ead6e45
Top config class is now available in all `Vagrant::Config::Base` subclasses. Useful for validation.
2010-09-30 00:50:50 -07:00
Mitchell Hashimoto
c5b81b5998
SSH gives error message if `ssh` binary is not found. [closes GH-161]
2010-09-29 23:47:17 -07:00
Mitchell Hashimoto
0fcc1150c5
Revert "Instead of using Kernel#system, use custom piped solution"
...
This reverts commit 171f4184c0
.
2010-09-29 23:38:07 -07:00
Mitchell Hashimoto
171f4184c0
Instead of using Kernel#system, use custom piped solution
2010-09-27 18:26:42 -07:00
Mitchell Hashimoto
ea6904761f
Check box action no longer needs to load_box!
2010-09-27 13:42:53 -07:00
Mitchell Hashimoto
1199c89a4a
Fix issues with Ruby 1.8.7 where Vagrant wouldn't even run
2010-09-27 12:10:17 -07:00
Mitchell Hashimoto
85bbb5dd87
Switch config to not implicitly use I18n.
2010-09-21 20:38:19 -06:00
Mitchell Hashimoto
b909adde1c
Since I18n isn't automatic for UI class, get rid of _ prefix on options
2010-09-21 18:14:18 -06:00
Mitchell Hashimoto
d003cc4f32
UI methods no longer automatically translate. Makes it easier for plugin developers.
2010-09-21 18:12:24 -06:00
Mitchell Hashimoto
f0294039e1
Load config files (only) early so plugins are loaded from Vagrantfiles
2010-09-21 01:47:50 -06:00
Mitchell Hashimoto
3b735e545f
Change VM loading to be lazy loaded so config can be loaded without VMs
2010-09-21 01:27:36 -06:00
Mitchell Hashimoto
e3ff9c7ac3
Resource logger now logs to a "logs" directory in the home path
2010-09-20 09:58:19 -06:00
Mitchell Hashimoto
7d89d011fb
Tests passing again due to config.vm.customize change earlier
2010-09-20 09:47:01 -06:00
Mitchell Hashimoto
f37710a4bd
Remove logger helper from action environment class
2010-09-20 09:44:51 -06:00
Mitchell Hashimoto
ba8307712d
Don't require root path to load an environment. (Makes `vagrant box` commands work again without a Vagrantfile)
2010-09-16 18:14:41 -06:00
Mitchell Hashimoto
bae6c57230
Expose test helpers [closes GH-162]
2010-09-15 09:19:38 -06:00
Mitchell Hashimoto
90aaf5cb5e
Command helpers `target_vms` now takes an optional string for the VM name
2010-09-15 08:38:56 -06:00
Mitchell Hashimoto
d5fbf29ec0
Plugins. Documentation coming shortly.
2010-09-14 23:10:51 -06:00
Mitchell Hashimoto
036edfcc2a
Only destroy the VM if the exception raised is not a Vagrant error
2010-09-14 00:48:31 -06:00
Mitchell Hashimoto
7c42300002
Expose the exception which triggers recovery methods through the "vagrant.error" environmental hash
2010-09-13 23:43:37 -06:00
Mitchell Hashimoto
d5ad387f27
New `vagrant package` option `--vagrantfile` and changed semantics of `--include` (see CHANGELOG)
2010-09-12 23:20:13 -06:00
Mitchell Hashimoto
4b8878f5f7
Import uses the string path, rather than the pathname
2010-09-12 16:37:43 -06:00
Mitchell Hashimoto
714c94780c
On import, only run destroy action if VM is created
2010-09-12 16:34:49 -06:00
Mitchell Hashimoto
7d73bec776
Disable networks only if VM is created
2010-09-12 16:31:38 -06:00
Mitchell Hashimoto
e11d3bd4f7
Only halt if created and running
2010-09-12 16:29:35 -06:00
Mitchell Hashimoto
4335adc8f4
Only discard state if the VM is created
2010-09-12 16:26:32 -06:00
Mitchell Hashimoto
02cfb60387
Verify box with a string path, not pathname
2010-09-12 15:39:37 -06:00
Mitchell Hashimoto
79b303a1fc
Send string, not pathname, to Minitar for decompression
2010-09-12 14:00:48 -07:00
Mitchell Hashimoto
5ce43a8ae0
Utilize pathname when available instead of doing just a File.join
2010-09-11 10:42:03 -07:00
Mitchell Hashimoto
2026bb0b1c
Remove unnecessary class methods on Box class. Move commands over to use "boxes" on env
2010-09-11 10:33:49 -07:00
Mitchell Hashimoto
761da0de63
Remove method calls to "Box.find" and remove method
2010-09-11 10:21:35 -07:00
Mitchell Hashimoto
0ee21998f6
New BoxCollection class to keep track of all boxes.
2010-09-11 10:17:26 -07:00
Mitchell Hashimoto
4b17ac0f89
Environment#home_path is a Pathname object for easier manipulation
2010-09-11 09:18:33 -07:00
Mitchell Hashimoto
86465a36c0
Change method by which configuration classes register themselves to be cleaner
2010-09-11 09:02:55 -07:00
Mitchell Hashimoto
f8e7431899
Retry SSH connect a few times before admitting defeat.
2010-09-09 00:28:21 -07:00