Commit Graph

1210 Commits

Author SHA1 Message Date
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