Mitchell Hashimoto
1cfef2734a
Fix crashing bug if .vagrant is invalid. [closes GH-496]
2011-09-11 23:23:17 -07:00
Mitchell Hashimoto
b49553383c
Revert "Don't expand VM folders for Chef"
...
This reverts commit 2665231363
.
This actually reverted GH-431
2011-08-29 21:10:37 -07:00
Mitchell Hashimoto
f6e6d7e834
Up version for development
2011-08-28 21:00:51 -07:00
Mitchell Hashimoto
cf08262be4
v0.8.6
2011-08-28 20:59:17 -07:00
Mitchell Hashimoto
b3dc6ba7d0
Check for VM accessibility in ssh_config
2011-08-28 20:41:51 -07:00
Mitchell Hashimoto
c569c8b697
Accessibility checks on VM for `ssh`
2011-08-28 20:38:56 -07:00
Mitchell Hashimoto
cdfbe4cc31
`vagrant up` on created machines check for inaccessible machines
2011-08-28 20:35:45 -07:00
Mitchell Hashimoto
82d6d5357b
`vagrant provision` checks for inaccessible VMs
2011-08-28 20:34:59 -07:00
Mitchell Hashimoto
327a6f9d94
Add a check for VM accessibility before every action
2011-08-28 20:32:22 -07:00
Mitchell Hashimoto
2efe1f9135
Handle inaccessible VMs with "vagrant status"
2011-08-28 20:17:25 -07:00
Mitchell Hashimoto
ed422e1151
Fixes to help with inaccessible VMs and forwarded ports
2011-08-28 20:02:15 -07:00
Mitchell Hashimoto
e739e68e30
Look for "redhat-release" for Fedora
2011-08-28 14:13:54 -07:00
Mitchell Hashimoto
2665231363
Don't expand VM folders for Chef
2011-08-29 00:51:07 -07:00
Mitchell Hashimoto
14d1b987ae
Add validation to args for shell provisioner
2011-08-28 00:02:42 -07:00
Mitchell Hashimoto
bf32fb4de8
Args can now be specified to the shell provisioner [closes GH-475]
2011-08-28 00:01:23 -07:00
Mitchell Hashimoto
0f0cb27e50
Use proper nfsd binary on Fedora [closes GH-450]
2011-08-27 23:47:13 -07:00
Mitchell Hashimoto
1c2f80fab4
Distro dispatch for Host classes
2011-08-27 23:39:02 -07:00
Mitchell Hashimoto
5f62231bac
Clear the line on box downloads [closes GH-476]
2011-08-27 20:35:52 -07:00
Mitchell Hashimoto
d2498cfa99
Up version for development
2011-08-27 20:15:14 -07:00
Mitchell Hashimoto
722ea85a6a
Remove "disk_image_format" config, since it isn't used. [closes GH-478]
2011-08-27 19:55:36 -07:00
Mitchell Hashimoto
fe072662fd
v0.8.5 - RubyGems bugs. Unbelievable.
2011-08-15 20:55:25 -07:00
Mitchell Hashimoto
e7f192ccc8
v0.8.4
...
RubyGems issue
2011-08-15 20:24:12 -07:00
Mitchell Hashimoto
547a056f80
v0.8.3
2011-08-15 20:17:52 -07:00
Mitchell Hashimoto
3c1b16f286
vagrant ssh -c no longer emits prefix and newlines [closes GH-462]
2011-08-14 13:51:20 -07:00
Lewis Marshall
25dee4ac6d
Default Vagrant::UI#clear_line to do nothing [closes GH-466]
...
This needs to be defined as it is used in Vagrant::Action::VM::Import#call
2011-08-13 18:55:38 -07:00
Mitchell Hashimoto
cf115c10b1
Fix errno not defined [closes GH-465]
2011-08-13 18:54:32 -07:00
Mitchell Hashimoto
3f9a2814c7
Clean up some of the UI output
2011-08-10 22:17:37 -07:00
Dan Carley
1ec225e052
Add "short" hostname to "/etc/hosts" mimicking Debian behaviour. [closes GH-456]
2011-08-09 23:25:55 -07:00
Mitchell Hashimoto
7df5cf6c9d
Fix some issues with the atomic counter and chef-solo
2011-08-03 21:28:29 -07:00
Mitchell Hashimoto
8ff269c341
Chef solo roles_path and data_bag_path should be a string
2011-08-02 23:30:57 -07:00
Greg Thornton
92bb5c423b
Changed data_bags_path and roles_path in chef-solo provisioner to strings rather than arrays. [closes GH-446]
2011-08-02 23:30:49 -07:00
Mitchell Hashimoto
9d7433cbe7
Chef client allow empty run list
2011-08-02 23:17:46 -07:00
Thomas Pelletier
860a458a9c
archlinux host only network support [closes GH-448]
2011-07-30 12:05:09 -07:00
Dave Simons
1bf3aa69ed
set hostname on archlinux [closes GH-439]
...
Signed-off-by: Dave Simons <dave@inuits.be>
2011-07-30 12:03:18 -07:00
Mitchell Hashimoto
f707431410
Fix remote URL chef solo runs. [closes GH-431]
2011-07-30 10:55:48 -07:00
Mitchell Hashimoto
0e7ccf86bc
Ignore "OSE" suffix when checking guest additions versions [closes GH-438]
2011-07-30 10:25:58 -07:00
Mitchell Hashimoto
2ca46ced57
Fix message when provision is run on halted machine [closes GH-447]
2011-07-30 09:58:29 -07:00
Mitchell Hashimoto
ed8bf34153
Chef client accepts nil run list to load run list from server [closes GH-429]
2011-07-25 21:33:36 -07:00
Mitchell Hashimoto
6217a91b5c
ssh: get proper $PATH for exec! [closes GH-426]
2011-07-25 21:22:16 -07:00
Mitchell Hashimoto
cd83a4a28f
Up version for development
2011-07-22 23:59:02 -07:00
Mitchell Hashimoto
30642dbd62
v0.8.2
2011-07-22 23:57:12 -07:00
Mitchell Hashimoto
14ca7ecc24
Better validation for networking configuration
2011-07-22 23:53:19 -07:00
Paul Nguyen
b92a814583
With puppet 2.7.x, the following warning [closes GH-421]
...
warning: Implicit invocation of 'puppet apply' by passing files (or flags) directly
to 'puppet' is deprecated, and will be removed in the 2.8 series. Please
invoke 'puppet apply' directly in the future.
Since puppet 2.6, 'puppet apply manifestfile.pp' is the preferred way to apply a puppet manifest file, instead of 'puppet manifestfile.pp'. The use of puppet without the apply option will be deprecated in 2.8.
Changed the 'commands' array to reflect the new syntax.
2011-07-22 23:30:48 -07:00
Mitchell Hashimoto
1cb613367d
Name the shared-folders logical name using atomic counter to allow multiple chef solo provisioners.
2011-07-22 23:09:37 -07:00
Jeff Rafter
64ae5bcdf9
Rework indexes on chef solo provisioner to fix roles, data_bags [closes GH-425]
2011-07-22 23:02:16 -07:00
Mitchell Hashimoto
6300bebe72
Disable SSH caching for now
2011-07-21 14:55:03 -07:00
Mitchell Hashimoto
fddc058e43
Reconnect SSH if the session closes
2011-07-21 10:53:58 -07:00
Mitchell Hashimoto
0b34364881
Up version for development
2011-07-20 18:41:59 -07:00
Mitchell Hashimoto
ce553707d0
v0.8.1 - Fix Psych issue
2011-07-20 18:28:37 -07:00
Mitchell Hashimoto
8368d9c6d1
Up version for development
2011-07-20 17:53:20 -07:00
Mitchell Hashimoto
530c4f29e0
v0.8.0
2011-07-20 17:52:14 -07:00
Mitchell Hashimoto
667405c4d7
Require VirtualBox 4.1.x
2011-07-19 14:32:27 -07:00
Mitchell Hashimoto
92f4ab63da
Network: Use new 4.1.x attribute host_only_interface
2011-07-19 14:24:26 -07:00
Mitchell Hashimoto
b3f0242dc0
Nitpick loading of configuration
2011-07-15 18:46:04 -07:00
Mitchell Hashimoto
4c6673270a
Ruby 1.8 compatibility
2011-07-11 20:13:19 -07:00
Mitchell Hashimoto
0dacd78b10
Add `forwarded_port_destination` to find SSH port by that instead of key. [closes GH-375]
2011-07-10 22:41:35 -07:00
Mitchell Hashimoto
0515d9a61e
Add more logging but default to it off for now until we add more later
2011-07-10 21:41:52 -07:00
Mitchell Hashimoto
ad36340674
Specify program names for previous logging locations
2011-07-10 16:50:26 -07:00
Mitchell Hashimoto
907c3b318a
Logging of `vagrant`, action running, and warden
2011-07-10 16:48:00 -07:00
Mitchell Hashimoto
be3f7ffbfc
Log all console output
2011-07-10 16:21:41 -07:00
Mitchell Hashimoto
8248679fab
Fix bug with loading Vagrantfiles with new case changing
2011-07-10 16:08:39 -07:00
Mitchell Hashimoto
11dc005d75
Basic logging
2011-07-10 15:57:28 -07:00
Mitchell Hashimoto
0db2ec9d43
Remove ResourceLogger and PlainLogger
2011-07-10 15:35:45 -07:00
Mitchell Hashimoto
050677b359
ResourceLogger doesn't need to be thread-safe. Vagrant is not multi-threaded.
2011-07-10 14:52:22 -07:00
Mitchell Hashimoto
aaa09749e4
Only get the home path on the root environment
2011-07-10 14:19:34 -07:00
Mitchell Hashimoto
442584fbac
Change default home directory to ~/.vagrant.d [closes GH-333]
2011-07-09 18:55:33 -07:00
Mitchell Hashimoto
52c5c79edf
Retry connection on Net::SSH::Disconnect [closes GH-313]
2011-07-09 17:02:41 -07:00
Mitchell Hashimoto
5143556065
Standardize on Util::Platform
2011-07-09 16:51:04 -07:00
Mitchell Hashimoto
1aed9f0f38
Remove leopard/tiger checking and just retry exec using safe_exec
2011-07-09 16:37:12 -07:00
Mitchell Hashimoto
874a9763f5
Only one copy of Vagrant can run at any given time. [closes GH-364]
...
This is to protect against issues with VirtualBox overwriting
each other.
2011-07-09 16:21:38 -07:00
Mitchell Hashimoto
a8af0f47d3
Vagrantfile created should be capitalized still
2011-07-09 15:23:03 -07:00
Mitchell Hashimoto
24337b0ca4
vagrantfile now is lowercase. backwards compatible, though. [closes GH-399]
2011-07-09 15:18:52 -07:00
Mitchell Hashimoto
1cf379a1f0
Be smart about loading files in Vagrant::SSH
2011-07-09 11:21:37 -07:00
Mitchell Hashimoto
881045a85f
Find a way to autoload 'vagrant/ssh' since that is a slow loader.
...
This involved realizing that requiring 'openssl' in the context
of an autoload causes some strange exceptions down the road. See this
gist for the error: https://gist.github.com/dd0b105bf9edcb7daa85
2011-07-09 11:12:15 -07:00
Mitchell Hashimoto
8b2d4bfe92
Update CHANGELOG, minor style changes
2011-07-08 18:19:36 -07:00
Michael Linderman
5bf4efe071
Don't delete package file if package output exists
2011-07-08 18:18:04 -07:00
Mitchell Hashimoto
0b02deb37a
Share folders go into the modify pipeline
2011-07-08 12:07:27 -07:00
Mitchell Hashimoto
d797e48389
Clear shared folders uses new modify pipeline
2011-07-08 12:05:18 -07:00
Mitchell Hashimoto
79c46b4ec1
Forward ports now uses modify pipeline
2011-07-08 12:04:01 -07:00
Mitchell Hashimoto
027b22eca0
Clear forwarded ports to the modify pipeline
2011-07-08 12:02:35 -07:00
Mitchell Hashimoto
6b2feae0e8
Create single interal modify block to sync VM modifications
2011-07-08 11:59:29 -07:00
Mitchell Hashimoto
b876d9ed1d
Move MAC address UI output into the customize block
2011-07-08 00:56:52 -07:00
Mitchell Hashimoto
f3c44fba2f
Clear shared folders now in the context of a single write lock
2011-07-08 00:26:28 -07:00
Mitchell Hashimoto
60708873e4
Clear forwarded ports is now done in context of customize block
2011-07-08 00:20:15 -07:00
Mitchell Hashimoto
268f7f7bc2
Improved lock-reducing of forwarded ports action
2011-07-08 00:03:33 -07:00
Mitchell Hashimoto
911a44523c
Create shared folders in VM customize block to reduce VirtualBox lock time.
2011-07-07 23:49:29 -07:00
Mitchell Hashimoto
1ecd04e0ac
Move port forwarding into customize block to run in a single VM lock.
2011-07-07 23:42:56 -07:00
Mitchell Hashimoto
17e86c40fc
Reload VM after running customization blocks
2011-07-07 23:41:19 -07:00
Mitchell Hashimoto
a0cf0c3761
Match MAC address using VM customize config to speed up `up` time
2011-07-07 23:27:09 -07:00
Mitchell Hashimoto
d77738b37f
Cache SSH connections to VMs.
2011-07-07 23:15:19 -07:00
Mitchell Hashimoto
e625dba5ab
Multiple Chef provisioners no longer overwrite cookbook folders. [closes GH-407]
2011-07-07 22:49:58 -07:00
Mitchell Hashimoto
729d62d1ea
Chef solo no longer overwrites share folders when multiple provisioners exist
2011-07-07 21:38:07 -07:00
Mitchell Hashimoto
5ae483ef85
Provisioners now properly share folders again
2011-07-07 10:38:32 -07:00
Mitchell Hashimoto
19eaddcd3a
Action to call `cleanup` method on provisioners during destroy.
2011-07-06 23:02:19 -07:00
Mitchell Hashimoto
45ce8b845a
Clean up the code for provisioners
2011-07-06 22:57:10 -07:00
Mitchell Hashimoto
563ac35bc0
No longer need the provisioners attr_accessor on the provision action
2011-07-06 22:56:09 -07:00
Mitchell Hashimoto
1de152ae36
Move provisioning prepare up into the `call` method
2011-07-06 22:50:49 -07:00
Mitchell Hashimoto
bdc316f4ef
Provisioner configuration no longer cleared when box is downloaded during an `up`. [closes GH-308]
2011-07-06 22:08:37 -07:00
Mitchell Hashimoto
9287324472
Chef JSON can be set directly with `json =` instead of the old `merge!` trick. [closes GH-314]
2011-07-06 00:44:21 -07:00
Mitchell Hashimoto
c2bccdc65a
Forward agent and forward X11 properly appear in `ssh_config` output. [closes GH-105]
2011-07-06 00:36:05 -07:00
Mitchell Hashimoto
29688eb788
`vagrant ssh` -e flag is now -c [closes GH-323]
2011-07-06 00:29:22 -07:00
Mitchell Hashimoto
5e2e019b7c
`ssh_config` will use VM name if given for host name [closes GH-332]
2011-07-06 00:18:44 -07:00
Mitchell Hashimoto
9e780606f4
Note that NFS doesn't support owner/group settings
2011-07-06 00:07:36 -07:00
Mitchell Hashimoto
6d6087ce73
Update solaris system to respect new owner/group shared folder settings
2011-07-05 23:59:31 -07:00
Mitchell Hashimoto
27ff6bd1df
Superficial change for linux system
2011-07-05 23:57:56 -07:00
Mitchell Hashimoto
8733a745ce
Can now specify owner/group of shared folders. [closes GH-350]
2011-07-05 23:53:23 -07:00
Mitchell Hashimoto
179845a36e
Host only network works properly on multiple adapters [closes GH-365]
2011-07-05 23:35:15 -07:00
Mitchell Hashimoto
b4c9ec60de
Ability to provide inline script for shell provisioner [closes GH-395]
2011-07-05 23:16:22 -07:00
Mitchell Hashimoto
dcaca22810
Show nice error message for bad HTTP downloads [closes GH-403]
2011-07-05 22:48:02 -07:00
Dan Bode
ad834feccc
(368) Added local network config code for Suse.
...
Networking in SUSE works almost exactly like redhat.
The only difference is the location of the networking scripts.
This has been verified as working on SLES11sp1, but requires a previously configured
eth1 interface (as with redhat)
I have also verified that I can still bring up a localnet on rhel 4,5
2011-07-03 17:35:59 -07:00
Mitchell Hashimoto
8bb2403ce0
Add error message specifically for chef_server change
2011-07-03 17:29:05 -07:00
Mitchell Hashimoto
c27d857387
Rename :chef_server to :chef_client. [GH-359]
2011-07-03 17:20:06 -07:00
Mitchell Hashimoto
d493a51ca2
v0.8.0.dev
2011-07-03 17:07:59 -07:00
Mitchell Hashimoto
578c384bf5
v0.7.6
2011-07-02 22:07:22 -07:00
Alan Shields
33538d2900
Set the home directory to /root when using sudo
...
Encountered this issue while using puppet. Created configuration file /root/.my.cnf
but mysql was looking for /home/vagrant/.my.cnf
Passing -H to sudo causes sudo to set env HOME=/root/
2011-07-02 21:43:53 -07:00
Jamie Winsor
7c89ef3de2
Add support for Chef encrypted data bags: http://wiki.opscode.com/display/chef/Encrypted+Data+Bags
...
Add two configuration options to chef_server provision:
encrypted_data_bag_secret_key_path - the location of your encrypted secret key on your local machine
encrypted_data_bag_secret - the location you wish to place the key on the target machine and the value of Chef::Config[:encrypted_data_bag_secret]. Default value of "/etc/chef/encrypted_data_bag".
2011-07-02 21:20:22 -07:00
Mitchell Hashimoto
096c8b284f
Do not load a plugin if it depends on invalid version of Vagrant
2011-07-02 09:27:28 -07:00
Mitchell Hashimoto
46c8bd09d3
Load prerelease plugins if available
2011-07-02 09:23:43 -07:00
Mitchell Hashimoto
338b3ac094
Run Chef commands in a single command [GH-390]
2011-06-16 18:04:55 -06:00
Ryan Schlesinger
a061428e50
Adding nfs option for chef solo.
2011-06-13 14:21:00 -07:00
Maksim Horbul
23bb514100
provide absolute paths for solo.rb and dna.js in order to make it work correctly with the restart cookbook https://github.com/dreamcat4/site-cookbooks/tree/COOK-245/restart/
2011-06-13 14:08:21 -07:00
Mitchell Hashimoto
f79084b1db
Touch RedHat network config to force it to exist [GH-381]
2011-06-09 23:20:17 -04:00
Mitchell Hashimoto
3582a8f2aa
Up version for development
2011-05-16 13:03:04 -07:00
Mitchell Hashimoto
79b62a8ee7
v0.7.5
2011-05-16 13:02:17 -07:00
Mitchell Hashimoto
c117dba4ab
Refactor and tests for GH-342 (chef enhancements)
2011-05-16 12:49:05 -07:00
Ryan Schlesinger
ab2fff4b5b
Adding extra runtime config options for chef.
...
Adding chef.binary_path and chef.binary_env to the config options for controlling where to find chef-solo/chef-client and how to run them.
2011-05-16 12:41:08 -07:00
Mitchell Hashimoto
f30ef2b8a9
Merge https://github.com/rcreasey/vagrant
2011-05-16 12:37:21 -07:00
Mitchell Hashimoto
f96a6363e2
No more RubyGems deprecation messages!
2011-05-16 12:32:33 -07:00
tH34UT0m4t0R
e72753874d
add port option to ssh config
2011-05-13 17:23:24 -07:00
Ryan C. Creasey
41404d9685
added data_bags_path to ChefSolo Provisioners; updated templates to accomodate.
2011-05-12 08:07:55 -07:00
Mitchell Hashimoto
6630dfe2d7
Up version for development
2011-05-12 00:19:22 -07:00
Mitchell Hashimoto
0360198971
v0.7.4
2011-05-12 00:18:40 -07:00
Tony La
593e2e628f
Ruby 1.8.6 Hash#select returns an array of results
...
Which results in a "odd number of arguments for Hash" error.
2011-05-11 23:58:12 -07:00
Will St. Clair
efd7c790e6
Suppress the "added to known hosts file" warning
...
Vagrant already disables StrictHostKeyChecking and redirects UserKnownHostsFile to /dev/null, so we may as well suppress the meaningless warning also.
2011-05-11 23:37:46 -07:00
Pat Collins
1134c0b7d6
Don't provide a default for the environment. That way currently the environment that is currently set for a node on the server is not mistakenly overridden with "_default".
2011-05-11 23:31:40 -07:00
Pat Collins
5f751d5a77
Provide a method to specify a Chef environment in a Vagrantfile.
2011-05-11 23:31:36 -07:00
Mitchell Hashimoto
e7e9dc5c4d
Up version for dev
2011-04-19 22:45:43 -07:00
Mitchell Hashimoto
b6fccbc1b7
v0.7.3
2011-04-19 22:44:44 -07:00
Mitchell Hashimoto
6d669d70de
Retry all SSH commands on Net::SSH::Disconnect
2011-04-19 22:25:56 -07:00
Mitchell Hashimoto
234c47a3a7
Retryable can take multiple exceptions to retry on
2011-04-19 22:24:52 -07:00
Mitchell Hashimoto
0953c41446
Some stylistic changes regarding arch commit
2011-04-19 22:04:55 -07:00
Tim Joseph Dumol
2c091c98cc
Added Arch Linux as under vagrant/hosts
...
Added NFS support for Arch Linux under vagrant/hosts by adding
vagrant/hosts/arch and a platform test for Arch Linux.
2011-04-19 22:03:21 -07:00
Mitchell Hashimoto
2cfa79ac6d
Setting hostname on Debian (not Ubuntu) should now work [closes GH-307]
2011-02-28 23:38:30 -08:00
Dimitri Aivaliotis
6f9387adc6
added :file_cache_path and :file_backup_path as configurable parameters
...
removed deprecated :file_store_path parameter
2011-02-25 19:33:01 -08:00
Jason Yan
b1bc49c0f3
Fix issue with port forwarding not respecting protocol option.
2011-02-25 19:30:27 -08:00
Mitchell Hashimoto
77a1b9a6ef
Fix issue with unknown terminal type output for sudo commands
2011-02-16 16:23:08 -08:00
Mitchell Hashimoto
e6f2406694
Up version for development
2011-02-08 23:12:03 -08:00
Mitchell Hashimoto
cebb01c9d6
v0.7.2
2011-02-08 23:11:25 -08:00
Mitchell Hashimoto
3c45df0a88
Can now configure what shell to sudo with (default: bash)
2011-02-08 23:06:05 -08:00
Mitchell Hashimoto
c1373f4eca
Failed SSH commands show output in error message. [closes GH-285]
2011-02-08 22:47:36 -08:00
Mitchell Hashimoto
41e98c97d6
Fix issue with "mount_nfs_fail" translation missing
2011-02-08 22:29:32 -08:00
Mitchell Hashimoto
34a3102325
Make code a bit more readable
2011-02-08 22:27:16 -08:00
Mitchell Hashimoto
a0dacb0fc2
NFS folders with spaces should now work [GH-293]
2011-02-08 21:14:20 -08:00
Mitchell Hashimoto
22f085dc5d
Tests for mac address setting on host only network
2011-02-08 19:42:32 -08:00
Vishvananda Ishaya
e2d5c12870
support macs in xx:xx:xx:xx:xx:xx format as well
2011-02-08 19:27:24 -08:00
Vishvananda Ishaya
6416bf8ef6
it is mac_address not mac
2011-02-08 19:27:18 -08:00
Vishvananda Ishaya
5c1e2cdd07
missed a >
2011-02-08 19:26:49 -08:00
Vishvananda Ishaya
211f9d46af
allow specification of mac in network command
2011-02-08 19:26:45 -08:00
Chris Beauchamp
13f8313378
Changes to fix the fqdn
2011-02-08 18:55:53 -08:00
Chris Beauchamp
0abb70ee89
changed sh to bash
2011-02-08 18:54:44 -08:00
Mitchell Hashimoto
6689a5a672
On sudo!, wait for channel/command to complete before returning
2011-02-05 15:09:48 -08:00
Mike Williams
4bb8b80950
"sudo -i sh" doesn't do the right thing on Debian lenny (sudo v1.6.9). Let's try "sudo sh -l" instead.
2011-02-02 15:29:33 -08:00
Mitchell Hashimoto
6d6ca39795
Host only networking only doesn't work on 64-bit Windows
2011-01-29 21:03:27 -08:00
Mitchell Hashimoto
fa1726a801
Don't rely on exceptions for data store file existence checking
2011-01-29 20:52:56 -08:00
Mitchell Hashimoto
d68b2a6615
Check if data store folder is a directory on Windows works
2011-01-29 20:50:31 -08:00
Mitchell Hashimoto
af85d29c1f
Up version for development
2011-01-28 18:05:14 -08:00
Mitchell Hashimoto
40a7f01c57
v0.7.1
2011-01-28 18:04:16 -08:00
Mitchell Hashimoto
3c13152c16
ssh-config checks key permissions prior to output
2011-01-28 17:52:44 -08:00
Mitchell Hashimoto
e02b871d1c
ssh-config now outputs configured config.ssh.host
2011-01-28 17:50:43 -08:00
Mitchell Hashimoto
8d55bdcae5
Style tweaks and tests added for changing host name
2011-01-28 17:41:48 -08:00
Mitchell Hashimoto
60ef9e482b
Modify /etc/hosts for RedHat when setting hostname
2011-01-28 17:34:26 -08:00
Mitchell Hashimoto
94b5074430
Merge branch 'master' of https://github.com/michaelbearne/vagrant
2011-01-28 17:30:15 -08:00
Mitchell Hashimoto
d58c1cf4d7
Gentoo host only network no longer fails if already enabled. [closes GH-286]
2011-01-26 14:31:59 -08:00
Mitchell Hashimoto
1e931eaba6
chmod and execute shell provisioning script in a single session
2011-01-25 11:43:25 -08:00
Mitchell Hashimoto
5a2dc84fca
Fix possibility of options being nil in SSH class
2011-01-24 20:46:22 -08:00
Mitchell Hashimoto
afcbeb9e7b
SSH#sudo! more compatible with all commands, example in details.
...
As pointed out by Charles Duffy, commands such as the following
didn't work in the previous version:
bash -c 'foo; bar'
Due to the way sudo! used `echo` to output lines into a tempfile.
This is now fixed.
2011-01-24 19:58:32 -08:00
Mitchell Hashimoto
535e72204c
Shell provisioner STDOUT/STDERR to console
2011-01-23 12:06:09 -08:00
Mitchell Hashimoto
75e283c81a
New `shell` provisioner which uploads and executes a script as root on VM
2011-01-23 12:00:50 -08:00
Mitchell Hashimoto
2821dcee7f
SSH commands which use sudo compatible with sudo < 1.7.0
2011-01-21 23:38:42 -08:00
Mitchell Hashimoto
baa2041c37
FreeBSD system
2011-01-21 16:03:50 -08:00
Kenneth Vestergaard
484b7290fa
add system provider for FreeBSD
2011-01-21 15:58:26 -08:00
Petyo Ivanov
31cc69cfa0
Fixed untrusted X11 forwarding when logging in.
...
Best explained here:
http://www.mail-archive.com/cygwin-xfree@cygwin.com/msg17927.html
2011-01-21 14:00:16 -08:00
Michael Bearne
b42925273a
Merge remote branch 'remotes/upstream/master'
2011-01-20 09:19:11 +00:00
Mitchell Hashimoto
59fa9ac46b
net-ssh 2.1.0. Adds "IdentitiesOnly" support for net-ssh, fixing problems.
2011-01-19 22:00:38 -08:00
Mitchell Hashimoto
d418a53ba3
Up version for development
2011-01-19 16:02:14 -08:00
Mitchell Hashimoto
df6da56c56
v0.7.0
2011-01-19 15:49:36 -08:00
Michael Bearne
f757184c06
added support for changing host name on up for Debian, Ubuntu and RedHat
2011-01-14 17:51:19 +00:00
Mitchell Hashimoto
9673b7eaee
Remove config.ssh.port, it actually never did anything
2011-01-14 00:36:49 -08:00
Mitchell Hashimoto
66bf56a073
Fix issue with puppet mounting shared folder as subfolder of another, causing spurious folder creation on the host
2011-01-14 00:21:20 -08:00
Mitchell Hashimoto
302f9ff0bb
Puppet provisioner can mount/configure module paths from local directory
2011-01-13 21:02:26 -08:00
Mitchell Hashimoto
28a2167dda
Up to 0.7.0.dev, release imminent
2011-01-13 17:40:07 -08:00
Mitchell Hashimoto
30d9afbb03
0.7.0 beta 2 (really release candidate)
2011-01-13 17:38:43 -08:00
Mitchell Hashimoto
db20f399fb
Improved puppet config validation
2011-01-13 17:27:39 -08:00
Mitchell Hashimoto
8d24f779f0
Provisioner config object should have access to the top config
2011-01-13 16:54:34 -08:00
Mitchell Hashimoto
fea6c1cf60
Assign puppet command to a variable for later use
2011-01-12 23:27:33 -08:00
Mitchell Hashimoto
547996e506
We don't need net-ssh-shell after all
2011-01-12 16:58:13 -08:00
Mitchell Hashimoto
2a5070dad7
All provisioners are now RVM-friendly
2011-01-12 16:57:19 -08:00
Mitchell Hashimoto
93d241f4ce
Puppet is now RVM friendly
2011-01-12 16:28:45 -08:00
Mitchell Hashimoto
55b7321f2b
Don't error check the "exit" call to SSH
2011-01-12 15:29:53 -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
f7666df24b
Fix 1.8.7 compatibility issue
2011-01-12 00:14:08 -08:00
Mitchell Hashimoto
658affe8cd
Provisioner config tests, fixed some bugs
2011-01-11 23:11:51 -08:00
Mitchell Hashimoto
eca25d1802
Remove unused error classes/messages
2011-01-11 22:43:35 -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
d951d058ce
Initial work on this. Tests are completely broken.
2011-01-11 21:07:12 -08:00
Mitchell Hashimoto
85b8ccc2ec
Provisioners now register themselves with their shortcut name
2011-01-11 19:52:55 -08:00
Mitchell Hashimoto
db60e5f426
Fix indentation on puppet.rb
2011-01-11 19:50:20 -08:00
Mitchell Hashimoto
37b94ffc6b
Get rid of unused ivar
2011-01-11 19:12:50 -08:00
Mitchell Hashimoto
af32d1f8ca
Pull VM config child classes into their own files
2011-01-11 12:17:12 -08:00
Mitchell Hashimoto
627b75d945
System superclass check can be done prior to instantiating
...
This also fixes a 1.8.7 incompatibility.
2011-01-11 11:45:53 -08:00
Mitchell Hashimoto
b302053f6e
Update CHANGELOG for RedHat host only networking
2011-01-10 18:15:55 -08:00
Michael Bearne
eda6b81093
re-implemented redhat distribution of host only network with additional check to see if network interface is up as on intial setup when not using dhcp the interface will be down as dhcp lookup will time out. To prevent vagrant time out on boot you need to add file /etc/dhclient.conf with value content timeout 1; to guest this is beacuse the default is 60 seconds this should be done in the base box
2011-01-10 17:15:15 +00:00
Michael Bearne
8b6d63ab58
Merge remote branch 'remotes/upstream/master'
...
Refactored redhat distribution to fit new model
Conflicts:
lib/vagrant/systems/linux.rb
templates/debian_network_entry.erb
templates/locales/en.yml
templates/network_entry.erb
templates/network_entry_debian.erb
2011-01-10 14:21:52 +00:00
Mitchell Hashimoto
c4bacdfe2d
Fix blank resource output on base box export [closes GH-267]
2011-01-09 15:52:19 -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
2fe2246bbd
Debian system. Linux distro dispatch to debian/gentoo
2011-01-09 13:19:50 -08:00
Mitchell Hashimoto
3643181021
Gentoo needs its own prepare_host_only_network method
2011-01-09 13:12:57 -08:00
Mitchell Hashimoto
272b421e0b
Stylistic change on System mappings
2011-01-09 13:10:52 -08:00
Tino Breddin
6c57154dac
Register Gentoo system.
2011-01-09 13:10:19 -08:00
Mitchell Hashimoto
b6bcd4d234
Gentoo system, inherit from linux
2011-01-09 13:09:55 -08:00
Tino Breddin
9ef1f13a6c
Added new system definition for Gentoo.
2011-01-09 13:07:34 -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
3ff1162230
Style fix to align autoload strings
2011-01-09 12:50:44 -08:00
Mitchell Hashimoto
b1627ca41b
Sleep less time while waiting for the VM to boot
2011-01-09 12:48:21 -08:00
Mitchell Hashimoto
dc4bf530fb
Use the env["key"] style instead of env.env.key
2011-01-09 12:35:48 -08:00
Mitchell Hashimoto
b9463de5b9
Helpful error message if NFS mount fails in Linux [closes GH-135]
2011-01-09 12:17:46 -08:00
Mitchell Hashimoto
101aa45226
Proxy settings for chef. [closes GH-169]
2011-01-08 23:30:07 -08:00
Mitchell Hashimoto
968499bd5c
Hash#select returns an array on 1.8.7 and a hash on 1.9.2. Make sure it is always a Hash.
2011-01-08 21:27:44 -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
29db4aefd5
Load vagrant/version so that `vagrant version` works again
2011-01-07 01:25:54 -08:00
Mitchell Hashimoto
9e27355d0e
Fix weird exception from autoloading Vagrant::SSH
2011-01-07 01:22:52 -08:00
Mitchell Hashimoto
8d529931ef
Be gone glob loader! Move everything to autoload or explicit require.
2011-01-07 01:12:16 -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
Mitchell Hashimoto
8daf81686d
Fix whitespace issues with puppet server
2011-01-06 13:35:08 -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
Michael Bearne
89d7b44e1f
added test for determining distribution and preparing guest network for Redhat distribution
2011-01-05 15:44:33 +00:00
Michael Bearne
fcf8190477
Merge remote branch 'remotes/upstream/master' into redhat-distro
2011-01-05 09:20:33 +00:00
Mitchell Hashimoto
afa9d923d4
Fix some code style
2011-01-04 20:28:04 -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
Michael Bearne
a1e864e3ff
Merge remote branch 'remotes/upstream/master' into redhat-distro
2011-01-04 09:29:15 +00: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
4cbce66ab1
Downloaders have clearer output to note what they're doing
2010-12-31 01:44:30 -06:00
Mitchell Hashimoto
6b74ad103d
Box adding via HTTP follows redirects [closes GH-163]
2010-12-31 01:40:30 -06:00
Mitchell Hashimoto
b33e4002ff
Up version for development to 0.7.0.beta2.dev
2010-12-30 21:12:30 -06:00
Ivan Evtuhovich
cdbe14c09e
Fix bug with mount vboxfs in SLES 11 boxes. Issue #251
2010-12-30 21:01:49 -06:00
Mitchell Hashimoto
8abdfe7b27
v0.7.0.beta - VirtualBox 4.0 support, initial testing
2010-12-24 19:25:18 -08:00
Mitchell Hashimoto
b0ce015f40
Up VirtualBox version check to 4.0
2010-12-24 19:15:36 -08: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
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
083c820a1b
And this is v0.7.0.dev, due to major internal changes for VB 4
2010-12-24 14:20:16 -08:00
Mitchell Hashimoto
7f41ce11b4
Up version for development (0.6.10.dev)
2010-12-21 20:10:44 -08:00
Mitchell Hashimoto
86394fc74b
v0.6.9
2010-12-21 20:08:29 -08:00
Mitchell Hashimoto
dbd18e752e
Whitespace changes
2010-12-21 20:07:57 -08:00
Mitchell Hashimoto
7c7f5d48fe
Don't need to call ".new" on raising exceptions
2010-12-21 20:04:21 -08:00
Mitchell Hashimoto
2358130c0e
Show error if host only networking on Windows
2010-12-21 19:52:41 -08:00
Michael Bearne
809250861d
Merge remote branch 'remotes/upstream/master'
...
Conflicts:
Gemfile.lock
2010-12-21 10:09:33 +00: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
c3b26dc4bf
Show special error if VirtualBox not detected on 64-bit Win
2010-12-18 20:50:32 -08:00
Mitchell Hashimoto
c9f14d6dc9
Use RbConfig instead of Config, latter is deprecated
2010-12-18 20:02:54 -08:00
Mitchell Hashimoto
59ae5747d0
Use timeout library instead of threads to check for VM boot
2010-12-18 18:50:59 -08:00
Mitchell Hashimoto
3f2f5685b2
Platform helpers to detect 64-bit and 32-bit CPU.
2010-12-18 12:02:48 -08:00
Mitchell Hashimoto
8c13d1919e
Use rbconfig to get host OS
2010-12-18 11:53:36 -08:00
Michael Bearne
d143fa965e
redhat distribution implemention for host only network
2010-12-16 13:30:44 +00:00
Brian P O'Rourke
e1ed00f14c
Enumerate vms according to definiton order.
2010-12-14 22:24:02 -08:00
Brian P O'Rourke
4e2472befc
Typo fixes for docs
2010-12-14 22:06:15 -08:00
Brice Figureau
bafb572b70
More permissive sed call on BSD hosts to prevent errors when cleaning nfs
...
Gnu sed -i option doesn't support a space between the option and the
backup extension.
On BSD hosts running GNU sed (for instance OSX with Macports), it cleaning
nfs shares couldn't happen.
Signed-off-by: Brice Figureau <brice@daysofwonder.com>
2010-12-14 21:58:29 -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
Lincoln Stoll
9dae6635b5
Register Solaris system.
2010-12-07 16:50:34 -08:00
Lincoln Stoll
0e0bc33137
Configurable solaris 'suexec' command, fix shared folder mount
2010-12-07 16:50:27 -08:00
Mitchell Hashimoto
29e640e211
Up version for development to v0.6.9.dev
2010-11-30 20:37:29 -08:00
Mitchell Hashimoto
d9bcbf1872
v0.6.8
2010-11-30 20:36:29 -08:00
Mitchell Hashimoto
331e0841e5
Box collection reloads after downloading during CheckBox. [closes GH-229]
2010-11-30 20:19:24 -08:00
Mitchell Hashimoto
0c5231e7b7
BoxCollection no longer inherits from Array
2010-11-30 20:13:45 -08:00
Mitchell Hashimoto
e83260662e
Fix chef validations with new blank run lists
2010-11-15 10:42:52 -08:00
Dreamcat4
63292fba96
Don't clear the run_list always. Allow the run_list on the chef server to be used!
2010-11-15 10:37:04 -08:00
Dreamcat4
4091b35a51
If you want the vm's FQDN to be default Chef Node name (and not "client")
2010-11-15 10:36:48 -08:00
Mitchell Hashimoto
6e48df560d
Up version for development
2010-11-08 18:17:14 -08:00
Mike Williams
3f358f5df6
Ensure host-only interface is down before reconfiguring it.
2010-11-08 18:07:58 -08:00
Mike Williams
9a254937fc
Use ifup on the host-only interface, rather than rebooting all interfaces.
2010-11-08 18:07:37 -08:00
Mitchell Hashimoto
a4abdb1403
v0.6.7
2010-11-03 21:40:45 -07:00
Ches Martin
8bff03fb80
BaseVMNotFoundError -> BaseVMNotFound and test [closes GH-200]
2010-11-03 21:35:39 -07:00
Mitchell Hashimoto
6bac0a7ab2
Better box verification/error messages.
2010-10-21 17:58:17 -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
af9fdef791
Fix output of `status` with multi-vm to be correct. [closes GH-196]
2010-10-21 17:15:02 -07:00
Mitchell Hashimoto
eda116cbe3
up to v0.6.7.dev for development
2010-10-14 14:14:05 -07:00
Mitchell Hashimoto
1544c25a18
v0.6.6
2010-10-14 14:13:24 -07:00
Mitchell Hashimoto
d994e980de
`vagrant status NAME` works again. [closes GH-191]
2010-10-14 14:00:48 -07:00
Mitchell Hashimoto
39407694e3
Validate only certain command sequences [closes GH-188]
2010-10-13 18:59:25 -07:00
Mitchell Hashimoto
92c37f7435
Remove `environment_load` action chain. It wasn't used.
2010-10-13 18:53:15 -07:00
Mitchell Hashimoto
f1a3c75bcb
Somewhat ghetto callback system in place to handle validations now. This will definitely get looked at again in the near future.
2010-10-13 18:51:12 -07:00
Mitchell Hashimoto
82d73ebe3c
General validation middleware
2010-10-13 18:40:12 -07:00
Mitchell Hashimoto
dcb06a0e43
Fix junk output for ssh-config. [closes GH-189]
2010-10-13 18:36:13 -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
29a5cada78
Up to 0.6.6.dev for development
2010-10-08 10:57:38 -07:00
Mitchell Hashimoto
6732872326
v0.6.5 - Important multi-VM and validation bug fixes.
2010-10-08 10:56:42 -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
5b9bc086ac
Fix plugin loading in a Rails 2.3.x project [closes GH-176]
2010-10-05 13:40:09 -07:00
Mitchell Hashimoto
8d909b8ee4
Update to v0.6.5.dev for development
2010-10-04 22:39:55 -07:00
Mitchell Hashimoto
f32db6ca6c
v0.6.4 - Various bug fixes
2010-10-04 22:38:21 -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
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
11e775b03b
Retry on TypeError for NFS cleanup, which seems to happen during Kernel#system
2010-09-30 01:39:05 -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
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
c0e3047af7
Subcommand help shows proper full command in task listing. [closes GH-168]
2010-09-30 00:07:01 -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
c30b5f4093
SSH gives proper error if VM is not running [closes GH-167]
2010-09-29 23:37:24 -07:00
Mitchell Hashimoto
990908c3ed
Fix some undefined error constants in commands
2010-09-29 23:31:21 -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
1827365326
Up to 0.6.4.dev for development
2010-09-27 13:41:48 -07:00
Mitchell Hashimoto
0f3055b968
More Ruby 1.8.7 trickery
2010-09-27 12:21:34 -07:00
Mitchell Hashimoto
8a8d1f84ae
A quick 0.6.2 to fix a simple coloring issue :)
2010-09-27 12:19:25 -07:00
Mitchell Hashimoto
a7d6bf4e08
v0.6.1
2010-09-27 12:12:32 -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
caa80d54ac
Don't use Ruby 1.9-only code
2010-09-27 12:01:56 -07:00
Mitchell Hashimoto
f47c59d4ba
Up to 0.6.1.dev for development
2010-09-27 12:01:28 -07:00
Mitchell Hashimoto
9040a53e27
v0.6.0
2010-09-27 11:03:54 -07:00
Mitchell Hashimoto
daa6caffe9
Document test helpers
2010-09-23 19:11:50 -07:00
Mitchell Hashimoto
f6db8e5518
Environment documentation
2010-09-23 19:06:47 -07:00
Mitchell Hashimoto
7aded5e214
Errors and Plugin documentation
2010-09-23 10:04:52 -07:00
Mitchell Hashimoto
2e3be3789e
More documentation and fixed some YARD warnings
2010-09-23 09:53:18 -07:00
Mitchell Hashimoto
fdb82ab4a4
Remove unused code
2010-09-23 09:44:59 -07:00
Mitchell Hashimoto
08d502e856
Command base code documentation
2010-09-23 08:45:53 -07:00
Mitchell Hashimoto
c8d7e6601d
YARD and some documentation
2010-09-22 09:43:30 -06: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
5316a520c6
Make commands API more consistent with both single and group commands
2010-09-21 12:59:05 -06:00
Mitchell Hashimoto
4a25acaad8
Validation on `config.vm.boot_mode`
2010-09-21 12:00:45 -06:00
Mitchell Hashimoto
cb69377b06
Remove Radar until next release.
2010-09-21 10:11:16 -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
f37710a4bd
Remove logger helper from action environment class
2010-09-20 09:44:51 -06:00
Mitchell Hashimoto
e0bf3f2dff
Converted final string that used logger to new i18n
2010-09-20 09:43:37 -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
97c72fbd1d
"self.name" needn't be defined for target_vms helper to be used
2010-09-15 12:58:02 -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
759bbd046b
Raise proper exception if SSH connection is refused with message to help people.
2010-09-14 15:00:46 -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
8f5dacef26
"vagrant_main" is no longer the default run list for chef. It now starts empty.
2010-09-12 17:10:24 -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
f7f36bbba4
Fix the call to boxes#find for `vagrant box` commands
2010-09-12 15:41:14 -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
b824a48569
`vagrant status` shouldn't call "require_environment"
2010-09-09 00:41:11 -07:00
Mitchell Hashimoto
6db1afff04
Get rid of redundant retries, switch to retryable
2010-09-09 00:37:54 -07:00
Mitchell Hashimoto
ea35608f64
Retry on SSH#exec! as well
2010-09-09 00:35:02 -07:00
Mitchell Hashimoto
f8e7431899
Retry SSH connect a few times before admitting defeat.
2010-09-09 00:28:21 -07:00
Mitchell Hashimoto
bd70a18e68
Slight cleanup of the linux system
2010-09-09 00:09:18 -07:00
Blake Irvin
123e87c13c
Added a rough system class for Solaris - solaris.rb
2010-09-09 00:06:23 -07:00
Anko painting
650ff4b734
Allow downloading via a proxy if http_proxy environment variable is set. [closes GH-157]
2010-09-08 22:11:53 -07:00
Mitchell Hashimoto
337eec2d07
Fork-and-wait on Tiger as well as leopard. [related to GH-51]
2010-09-07 14:19:06 -07:00
Mitchell Hashimoto
3cca2f1bb4
Config loading test is now powered by real Vagrantfiles, rather than mocks
2010-09-07 11:30:48 -07:00
Mitchell Hashimoto
5f6e3acf40
Require root path on environment load
2010-09-07 10:52:58 -07:00
Mitchell Hashimoto
baccbd047d
Cleaner upgrade process and backup previous .vagrant file
2010-09-07 10:26:50 -07:00
Mitchell Hashimoto
5a13347fb4
Fix issue with local data store not being properly cleared for VM destruction
2010-09-07 01:02:11 -07:00
Mitchell Hashimoto
b7788e3c06
Upgrade command to 0.6.0 format added `vagrant upgrade_to_060`
2010-09-07 00:50:42 -07:00