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