Commit Graph

1586 Commits

Author SHA1 Message Date
Mitchell Hashimoto 069a1c1348 Try to actually create directory before showing home directory error 2011-12-10 17:37:18 -08:00
Mitchell Hashimoto d9e2c8b788 Raise a nice error if home directory is not accessible 2011-12-10 17:14:07 -08:00
Mitchell Hashimoto d05c6f9d61 Get regression working again 2011-12-10 16:38:01 -08:00
Mitchell Hashimoto baba6af4ff Resource prefixes in UI output work 2011-12-10 16:17:09 -08:00
Mitchell Hashimoto 40b9254d5a Environment reloading works 2011-12-10 16:07:28 -08:00
Mitchell Hashimoto a1d3f8b4dd Fix typo to get networking working again 2011-12-10 14:27:59 -08:00
Mitchell Hashimoto 448e9429ac Get rid of broken env.ui calls in actions 2011-12-10 14:23:22 -08:00
Mitchell Hashimoto 697fb7eaaf Get rid of more env.env calls 2011-12-10 14:22:04 -08:00
Mitchell Hashimoto 9e58e45c69 Fix resume action to work properly 2011-12-10 14:18:40 -08:00
Mitchell Hashimoto 71c39126e5 Fix suspend action to work again 2011-12-10 14:15:18 -08:00
Mitchell Hashimoto 2a7f0d8a85 Return nil if no root path to determine dotfile 2011-12-10 13:56:34 -08:00
Mitchell Hashimoto 6093dcc26d Fix systems dependence on env 2011-12-10 13:44:45 -08:00
Mitchell Hashimoto ea7caebe02 Setup the default name for the VM 2011-12-10 13:28:03 -08:00
Mitchell Hashimoto f2666a9b74 Config validation is back in. 2011-12-10 13:21:45 -08:00
Mitchell Hashimoto 5c6ca57409 Throw an error if a box already exists when calling box.add 2011-12-10 13:09:03 -08:00
Mitchell Hashimoto 2f85fe1d4f Return proper dotfile path 2011-12-10 13:02:00 -08:00
Mitchell Hashimoto 93e5bc3969 Tweak actions for new runner 2011-12-10 12:52:42 -08:00
Mitchell Hashimoto b4c5b854e2 SSH working with new changes 2011-12-10 12:49:35 -08:00
Mitchell Hashimoto bfd93eef4e Come a lot farther in getting `up` to work again 2011-12-10 09:54:23 -08:00
Mitchell Hashimoto 1758970a53 Fixing up VM actions to try to get them working again 2011-12-09 20:39:08 -08:00
Mitchell Hashimoto 739d5ffb5f Lazy load attributes for runners. Get box repackage working. 2011-12-09 20:24:34 -08:00
Mitchell Hashimoto d9321ed4d4 Box destroy works again 2011-12-09 18:06:34 -08:00
Mitchell Hashimoto d92f3d8c6d Box add works again with new env stuff 2011-12-09 17:33:30 -08:00
Mitchell Hashimoto b878f1bd66 class => module Action 2011-12-09 17:23:27 -08:00
Mitchell Hashimoto 3edb9c2269 Move all autoloads for actions into action.rb 2011-12-09 17:19:13 -08:00
Mitchell Hashimoto 56663b5952 Remove dependence on Vagrant::Environment on downloaders 2011-12-09 15:18:43 -08:00
Mitchell Hashimoto 0304f78a84 Fix to runner to get interrupts working again 2011-12-09 14:56:56 -08:00
Mitchell Hashimoto f261c0571f Modify box download action to work with new runnerx 2011-12-09 14:55:24 -08:00
Mitchell Hashimoto 3c8261f4ac Add :ui to the globals for the action runner 2011-12-09 14:50:42 -08:00
Mitchell Hashimoto b31c3d458c Action runner supports global parameters 2011-12-09 14:44:43 -08:00
Mitchell Hashimoto bbb8f0ac2c Integrate new action runner/registry into Vagrant::Environment 2011-12-09 14:39:39 -08:00
Mitchell Hashimoto daf711fd80 Separate Vagrant::Action into Runner and Registry 2011-12-09 14:22:03 -08:00
Mitchell Hashimoto 5bfcbcba66 Remove step stuff. Failed experiment for now. Too radical for point release. 2011-12-09 13:40:49 -08:00
Mitchell Hashimoto b5ae4672b7 Raise exception in edge case 2011-12-09 13:30:04 -08:00
Mitchell Hashimoto 2c73de0043 The proper enter/exit sequence is called for multisteps 2011-12-06 18:45:37 -08:00
Mitchell Hashimoto 822226cae4 MultiStep does not allow composing steps that do not work together 2011-12-06 18:31:07 -08:00
Mitchell Hashimoto 73761dc92a MultiStep should do input/output validation 2011-12-06 18:19:18 -08:00
Mitchell Hashimoto 7d3746b292 Multistep can now take parameters from any arbitrary step prior. 2011-12-06 09:46:57 -08:00
Mitchell Hashimoto c5eae41fd8 Revamp Step to be more like a Python with-context 2011-12-05 21:05:41 -08:00
Mitchell Hashimoto 683bbdaa3c Implement multistep 2011-12-04 18:09:18 -08:00
Mitchell Hashimoto 49d299956f Add the "Step" abstraction 2011-12-04 17:14:21 -08:00
Mitchell Hashimoto 833dbf8fc4 Remove box dependence on env 2011-12-04 14:06:05 -08:00
Mitchell Hashimoto 8801bc7b1b Starting to revamp BoxCollection to not depend on env 2011-12-04 11:39:44 -08:00
Mitchell Hashimoto cf7a5db7e7 More environment.rb cleanup 2011-12-04 11:24:18 -08:00
Mitchell Hashimoto f8d628148c Remove all environment `parent` references 2011-12-04 11:16:55 -08:00
Mitchell Hashimoto e2977e8948 Make VM names symbols again, since they're accessed often. 2011-12-03 19:33:44 -08:00
Mitchell Hashimoto b61d9a6d3d load_vms. Broke so many things.
I've changed Vagrant::VM to be slightly more in line with what I
imagined. However, doing this change has definitely broken _everything_.
We now slowly must cobble back together based on this new API.
2011-12-03 19:30:42 -08:00
Mitchell Hashimoto 1921ce17e8 Propery load box configuration 2011-12-03 19:17:08 -08:00
Mitchell Hashimoto 99982fb26e VM-specific configuration now works. 2011-12-03 19:05:50 -08:00
Mitchell Hashimoto 73a672cff1 load_config! is kind of working again.
Specifically: Global configuration load appears to be working. More
unit tests should reveal if proper VM configuration is loading.
2011-12-03 18:31:17 -08:00
Mitchell Hashimoto cb5f6b57f4 Remove Vagrant 0.8.0 transition code. 2011-12-03 18:11:24 -08:00
Mitchell Hashimoto 02cc1447dc Configuration files are only loaded once 2011-12-03 17:42:16 -08:00
Mitchell Hashimoto 15c56a1f4c Configuration loads. Lots of refactor to do still. 2011-12-03 17:29:28 -08:00
Mitchell Hashimoto 1a8c4199b2 Introduce Config::Loader
Config::Loader will be the new class responsible for loading configuration
and replaces the previous dual-role "Vagrant::Config" played. While this
commit is very early-stage, once this new architecture is flushed out, it
will make loading, using, and extending configuration much easier and cleaner.

Additionally, I believe this will help post Vagrant 1.0 if multi-language
configuration is implemented.
2011-12-03 17:12:48 -08:00
Mitchell Hashimoto e38e3cc652 Move VAGRANT_LOG logic into vagrant.rb so VAGRANT_LOG is always available 2011-12-03 17:12:07 -08:00
Mitchell Hashimoto 1355487a04 Environment UI class can now be set through the environment init 2011-12-03 16:07:34 -08:00
Mitchell Hashimoto cb8d00b55f Move the VM accessible check into more relevant actions 2011-12-03 15:37:13 -08:00
Mitchell Hashimoto c37f16b754 Remove final logger reference 2011-12-01 21:56:56 -08:00
Mitchell Hashimoto dd4acb1e3d Convert remaining logger calls outside of environment to log4r 2011-12-01 21:56:56 -08:00
Mitchell Hashimoto e4c0a0bf0a Convert warden to use log4r 2011-12-01 21:56:56 -08:00
Mitchell Hashimoto 0a47c9d6fa Make log4r a first class dependency as we start to switch to it 2011-12-01 21:56:56 -08:00
Mitchell Hashimoto 282bf37350 Get the tests passing 2011-12-01 21:56:55 -08:00
Mitchell Hashimoto 6ea3335de6 DRY up the new UI class a bit 2011-12-01 21:56:55 -08:00
Mitchell Hashimoto d84ec88fae Add color to the colored UI 2011-12-01 21:56:55 -08:00
Mitchell Hashimoto af56c274c0 Add the "Basic" UI for non-colored messages 2011-12-01 21:56:55 -08:00
Mitchell Hashimoto f519434285 Rip out Thor::Shell 2011-12-01 21:56:55 -08:00
Mitchell Hashimoto 9c59f0f357 Upgrade version for development on 0.9.0 2011-12-01 21:56:55 -08:00
Mitchell Hashimoto d4da278f28 v0.8.8 2011-12-01 21:53:54 -08:00
Mitchell Hashimoto 723b3c06fb Append folder name to chef solo cookbooks [GH-511] 2011-11-30 14:54:55 -08:00
Mitchell Hashimoto 27c83aef16 Make the default path to encrypted data bags `/tmp` [GH-512] 2011-11-30 14:26:13 -08:00
Mitchell Hashimoto 24895f2479 Update CHANGELOG 2011-11-30 12:52:05 -08:00
Michael Dellanoce a221235307 Remove windows drive letter from path if running a chef solo provisioner on a Windows guest 2011-11-30 12:51:04 -08:00
Mitchell Hashimoto c1a0b97067 Only check non-OSE versions for checking guest addition versions [GH-514] 2011-11-30 12:46:13 -08:00
Mitchell Hashimoto 8bb6d375f1 Use test SSH commands for additional verification SSH is "up" 2011-11-25 23:48:00 -07:00
Mitchell Hashimoto 15efdf5a1a Remove complicated Net::SSH session caching... thing.x 2011-11-25 23:20:16 -07:00
Mitchell Hashimoto 331b5c20a8 Update CHANGELOG for GH-502 2011-11-24 21:58:40 -07:00
Darrin Wortlehock 4c01a87ab3 Adding support for 'no_proxy' environment variable to suppress proxy in http downloader 2011-11-24 21:54:35 -07:00
Mitchell Hashimoto f6055f8711 Merge remote-tracking branch 'ody/debian/master/honor_config_setting' 2011-11-24 21:49:30 -07:00
John Watson 8a0a1bddb5 Proper support for NFS in FreeBSD 2011-11-24 21:45:23 -07:00
Eriksen Costa 82c679b9a5 Kernel.exec still failing in OS X Leopard [closes GH-544] 2011-11-24 21:32:44 -07:00
Mitchell Hashimoto 2bcd68d323 Slight tweaks for GH-556 2011-11-22 19:05:44 -08:00
Justin Brown dcef64fa0d Remove the chef dependency on the default 'v-root' shared folder. 2011-11-22 19:03:52 -08:00
Mitchell Hashimoto 5d684b9001 Reload the configuration for all VMs after downloading a box. Fixes GH-564 2011-11-21 22:39:12 -08:00
Mitchell Hashimoto bb06a20843 Add `rake acceptance:boxes` to download required boxes for tests 2011-11-13 13:37:30 -08:00
Mitchell Hashimoto 71e23bd27c Remove GlobLoader from util.rb since it doesn't exist anymore 2011-11-13 13:19:16 -08:00
Mitchell Hashimoto f83c1b3c27 Fix regression introduced with cab1e4e 2011-11-05 15:19:03 -07:00
Mitchell Hashimoto cab1e4e49b Make the file download the default for `vagrant box add`. Tests. 2011-11-03 21:56:38 -07:00
Justin Brown 0c2fc0cae2 Make init respect the env's cwd. 2011-10-30 22:48:35 -07:00
Dave Smith 971d406857 Use /etc/nodename for hostname; preferable for this situation 2011-10-30 22:40:21 -07:00
Dave Smith be078aedc4 Add solaris support for host-only networks and setting the hostname 2011-10-30 22:40:10 -07:00
Ticean Bennett dab80649b8 Added Basic Auth support to HTTP downloader. 2011-10-14 18:37:24 +02:00
Mitchell Hashimoto 28cc13ad38 Sort shared folders by length only if they have a guest path 2011-10-14 18:20:10 +02:00
Chris McClimans ec68c0a655 michellh/vagrant#524 2011-10-14 18:15:00 +02:00
Mitchell Hashimoto d4ff392be4 Fix wrong # of argument issue. [closes GH-518]
The second parameter actually is supposed to be options.
2011-10-14 17:19:16 +02:00
Cody Herriges f9c485bf05 Should honor max_tries.
Identified another place where ssh.max_tries was not being used where
  is likely should be.
2011-09-29 15:35:07 -07:00
Cody Herriges 48f3ce5880 Makes the execute method honor max_tries.
Vagrant::SSH.execute is hard coded for only 5 tries, this makes
  starting Debian machines very unreliable.  Debian will reset
  networking when you create a new hostonly NIC or change the hostname
  of the machine and occasionally the coming up part takes longer than
  what is provided by 5 tries.  Making this method honor the max_tries
  config option will make it possible to avoid this.
2011-09-21 13:27:23 -07:00
Mitchell Hashimoto 1bcbaa6df2 up version for development 2011-09-13 13:25:09 -07:00
Mitchell Hashimoto 5716b8dafb v0.8.7 2011-09-13 13:21:29 -07:00
Mitchell Hashimoto 7219f3d05b Show warning if forwarding port less than 1024 [closes GH-487] 2011-09-11 23:56:02 -07:00
Samer Abukhait 99646735d0 Don't do the port threshold check if running under root 2011-09-11 23:26:55 -07:00
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