Mitchell Hashimoto
64139f2158
guests/tinycore: error if DHCP [GH-4699]
2014-10-24 11:24:16 -07:00
Mitchell Hashimoto
5418e6b85e
guests: add remove_public_key to most guests
2014-10-24 10:05:01 -07:00
Mitchell Hashimoto
94b2a8a56b
communicators/ssh: insert random key, remove insecure key
2014-10-24 09:58:18 -07:00
Mitchell Hashimoto
9b9c24cb59
Merge pull request #4468 from SilverWyrda/arch-predictable-network-interface-names
...
guests/arch: Add support for predictable network interfaces names
2014-10-23 10:20:01 -07:00
Mitchell Hashimoto
26c468b5f9
Merge pull request #4469 from Gurpartap/tinycore-change_host_name-pr
...
change_host_name.rb for TinyCore Linux
2014-10-23 10:18:56 -07:00
Mitchell Hashimoto
d04ec704c1
update CHANGELOG
2014-10-23 10:12:27 -07:00
Mitchell Hashimoto
4b4255c6d1
Merge pull request #4492 from tboerger/feature/suse-fixes
...
SUSE naming and capability fixes
2014-10-23 10:11:28 -07:00
Mitchell Hashimoto
e30ba41104
Merge pull request #4499 from sprin/centos_7_nfs_client
...
Fix NFSClient plugin for Redhat / Centos 7 guests
2014-10-23 10:09:11 -07:00
Mitchell Hashimoto
4c0aa0d9cb
update CHANGELOG
2014-10-23 10:04:58 -07:00
Mitchell Hashimoto
fca6428ecd
Merge pull request #4518 from lunetics/master
...
guests/freebsd: allow NFS version param
2014-10-23 10:03:41 -07:00
Mitchell Hashimoto
f24af5dda4
Merge pull request #4527 from Asquera/bugfix/4465-host-not-added-to-etc-hosts
...
Fix #4465 update /etc/hosts on rhel 7 and derivatives (CentOS)
2014-10-23 09:57:12 -07:00
Mitchell Hashimoto
50b0ea8173
Merge pull request #4535 from plu/master
...
guests/darwin: Set ComputerName and LocalHostName on darwin guests
2014-10-23 09:55:13 -07:00
Mitchell Hashimoto
35c9b59968
Merge pull request #4565 from dup2/patch-1
...
guests/ubuntu: A more reliable way to detect Ubuntu via lsb_release
2014-10-23 09:46:54 -07:00
Mitchell Hashimoto
bab9e979b7
Merge pull request #4621 from awusizok/fix/master/2905-static-solaris11-addresses
...
guests/solaris: Solving #2905 - Restarting Solaris 11 boxes with static ip addresses
2014-10-23 09:20:10 -07:00
Mitchell Hashimoto
4a9d99ef71
Merge pull request #4641 from dimbleby/smb_share_error
...
Provide output on raising LinuxMountFailed
2014-10-23 09:18:20 -07:00
uchagani
2d465ea923
Fixed escape character problem in registry path
2014-10-23 11:27:14 -04:00
uchagani
90cbdd85e1
Rename Windows guest without reboot
2014-10-23 02:27:05 -04:00
dch
97589636b1
Provide output on raising LinuxMountFailed
2014-10-14 18:25:13 +01:00
Jörn Schwarze
b2a37dae99
...missed to replace the device variable :-)
2014-10-10 22:49:45 +02:00
Jörn Schwarze
fe3a380823
First fix didn't work correctly.
...
Now, the ip address will be removed, if there (from dhcp) and re-configured with the given value.
2014-10-10 22:42:13 +02:00
Jörn Schwarze
5036326319
Adding condition for the ipadm command on static ip addresses.
...
This will enable restarting solaris 11 vagrant boxes with static ip addresses.
2014-10-10 20:09:42 +02:00
Shawn Neal
220e4f23b2
Merge pull request #4209 from mwrock/smb_sync
...
adding smb sync folder implementation for windows guests addressing #3699
2014-10-07 08:19:26 -07:00
Dr. Zarkov
779e54eef5
A more reliable way to detect Ubuntu
...
The default /etc/issue might have been changed by the administrator and not contain the string 'Ubuntu' anymore.
2014-09-26 14:05:54 +02:00
Johannes Plunien
286e9cd01e
Set ComputerName and LocalHostName on darwin guests
...
This sets the bonjour host name for darwin guests to the same value
as config.vm.hostname. It also sets the user-friendly name for the
system.
2014-09-21 19:14:59 +02:00
Felix Gilcher
96b011b39e
update /etc/hosts on rhel 7
...
the previous fix for #4465 assumed that the NetworkManager takes care of updating /etc/hosts with
the new hostname, but testing shows it doesn't. This change ensures that the change is always added
to /etc/hosts when the name changes.
2014-09-20 17:34:01 +02:00
Matthias Breddin
d4b30dd12a
Allow nfs
2014-09-18 17:14:13 +02:00
sprin
a712f70634
Fix NFSClient plugin for Redhat / Centos 7 guests
...
Fixes #4476 .
2014-09-12 15:35:10 -07:00
Thomas Boerger
063a903bdb
Fixed and extended suse guest capabilities
...
In order to get a SUSE guest running and installing fine i have added a
correct capability for installing rsync and nfs-client.
I have included SUSE naming fixes as well because SUSe doesnt get
spelled SuSE anymore :).
2014-09-11 17:07:49 +02:00
Thomas Boerger
6c20b6cd34
Fixed suse spelling in fedora capability
2014-09-11 10:52:15 +02:00
Gurpartap Singh
fd25cbefe1
change_host_name cap for TinyCore Linux
2014-09-07 02:05:41 +05:30
SilverWyrda
384fd3ba98
Delegate cleaning to arch box packagers
2014-09-06 06:44:24 +02:00
SilverWyrda
10090bf4dc
Add support for predictable network interfaces names
2014-09-06 04:56:01 +02:00
Andy Thompson
e667bcb675
Fix failure to detect RHEL 7 flavours
2014-09-04 22:03:07 +01:00
Andy Thompson
5c988b64b5
Fixes #4450 , add another expand_path ../ to get back to the guests directory
2014-09-04 20:51:10 +01:00
Andy Thompson
fb1d4adf87
Fixes #4438 typo missing sending networks param for rhel guest network
2014-09-03 16:09:30 +01:00
keithchambers
1f93582131
Fixed typo: hostnamectl vs. homenamectl
2014-09-02 21:55:33 -07:00
Mitchell Hashimoto
41f4ec1e4d
guests/redhat: set hostname on EL7 [GH-4352]
2014-08-31 09:58:12 -07:00
Mitchell Hashimoto
f4ee4764bb
guests/redhat: configure networks properly on EL7 [GH-4195]
2014-08-30 22:49:13 -07:00
Mitchell Hashimoto
6074a63683
guests/redhat: install Docker on EL7 properly [GH-4402]
2014-08-30 22:44:48 -07:00
Eric Saxby
dd77295533
Ensure rsync_post has find permissions on smartos
2014-08-29 14:17:28 -07:00
Mitchell Hashimoto
9e5a2d28c6
Merge pull request #4308 from Voxer/fix/master/issue4307
...
guest/freebsd: fix interface device names in /etc/rc.conf
2014-08-29 09:54:31 -07:00
Mitchell Hashimoto
b2b79a4ea8
guests/linux: backoff a bit on the mount timeout [GH-4403]
2014-08-29 09:47:34 -07:00
Mitchell Hashimoto
b42e9aef23
guests/linux: more verbose output when shared folder mount fails
...
[GH-4403]
2014-08-29 08:27:48 -07:00
Leo Simons
fec14cf04c
Use -f argument to rm to force-remove files.
...
When using pty=true, removing files using sudo may request confirmation,
which will hang the connection.
Similarly, sometimes assumptions about file existence may be wrong and
in those cases it seems better to continue on as long as the file does
not exist, so -f makes sense there, too.
2014-08-29 10:51:31 +02:00
Matt Wrock
d820bef6f4
filter host IPs to those that resolve on guest when finding addresable IPs on a windows guest
2014-08-11 00:07:21 -07:00
Matt Wrock
e64f84491e
adding smb sync folder implementation for windows guests addressing #3699
2014-08-11 00:07:21 -07:00
Kostyantyn Fomin
c43ab95f86
Fix Issue 4307: FreeBSD fix interface device names in /etc/rc.conf
...
https://github.com/mitchellh/vagrant/issues/4307
Fix details:
Pass network interface name to template renderer and use it
in static and dhcp templates to render /etc/rc.conf entries.
modified: plugins/guests/freebsd/cap/configure_networks.rb
modified: templates/guests/freebsd/network_dhcp.erb
modified: templates/guests/freebsd/network_static.erb
Verification scenario:
Check if /etc/rc.conf contains vtnet entries when paravirtualized
NIC devices are used in FreeBSD guest.
2014-08-06 14:10:05 -07:00
Mitchell Hashimoto
00bd226fc7
guests/nixos: don't detect as Windows [GH-4302]
2014-08-06 11:17:41 -07:00
Mitchell Hashimoto
3f456cdf45
Merge pull request #4088 from salimane/pr_nfs_rpcbind_centos
...
guests/centos: Restart rpcbind and nfs while installing nfs client on centos guests
2014-08-06 10:47:38 -07:00
Mitchell Hashimoto
bd94fbd9ba
Merge pull request #4274 from sax/smartos_rsync
...
guests/smartos: rsync on SmartOS should use pfexec
2014-08-05 17:20:38 -07:00
Gilles Dubreuil
bd4d4284c4
Fixes Fedora 20 network issues when virtual
...
On Fedora 20 virtual machines biosdevname command
'Returns 4 if running in a virtual machine.'
This patch:
- Uses the biosdevname command return value to detect if virtual
- Uses /sys/net to get interface names - Might be better solution
- Leaves unchanged the original 'bare metal' case - I wonder what for
though?
Tested with Fedora Cloud image adapted for vagrant-libvirt
Fixes issue #4104
2014-08-05 13:19:51 +10:00
Eric Saxby
0cb7ec2d52
rsync on SmartOS should use pfexec
2014-07-31 14:41:06 -07:00
Shawn Neal
911406ed4a
Addressed issues with Windows guest renaming on Win7/8
...
Removed dependency upon netdom which is not always available on all Windows versions. This implementation that uses PowerShell and WMI should work on all OS and PowerShell versions.
Fixed another issue where host renames would always happen when the hostname was longer than 15 characters. The COMPUTERNAME environment variable only returns the first 15 characters so we no longer use that to check the current host name.
2014-06-25 12:15:01 -07:00
Salimane Adjao Moustapha
dd74a82d56
avahi not needed
2014-06-23 17:17:54 +02:00
Salimane Adjao Moustapha
b96dc972e0
install rpc package while installing nfs client on centos guests
2014-06-23 14:56:10 +02:00
Mitchell Hashimoto
0c3d677bf5
Merge pull request #4006 from mitchellh/fix-issue-3987
...
guests/windows: reboot after hostname change
2014-06-12 11:40:22 -07:00
Mitchell Hashimoto
4d76327382
guests/freebsd: style
2014-06-12 11:38:53 -07:00
Calvin Hendryx-Parker
eda1ac5667
Updated the rsync freebsd plugin install process for FreeBSD 10
2014-06-10 15:07:50 -04:00
Shawn Neal
d4bd05883d
Fixed issue 3987
...
Reboot the Windows guest after renaming the computer so changes take affect immediately before attempting to provision the box.
- Changed rename from wmic to netdom since netdom seems to work correctly in Windows 2008R2 and newer OSs.
- Fixed Windows guest error translations, the wrong namespace was specified in the yaml file.
2014-06-09 22:46:03 -07:00
Doug MacEachern
3b1b3d0a00
Add nixos guest capability: nfs_client_installed
2014-06-05 17:53:32 -07:00
Matt Behrens
ef44f19601
drop `-r` flag from `xargs` on OS X
...
OS X's `xargs` does not support the `-r` flag (which means "do not
execute the command even once if there are no arguments"), but
behaves by default as if it was specified.
You can verify this yourself with this test:
$ touch zero-length-file
$ xargs echo <zero-length-file
If `echo` is executed, you will see a blank line. If it is not
executed (i.e. `-r` is specified or the behavior is implied) then
you will see no blank line.
2014-05-25 18:42:40 -04:00
Mitchell Hashimoto
aa70a816a5
Merge pull request #3874 from gpurkins/sol11-networkfix
...
guests/solaris11: Added conditional for temporary interfaces
2014-05-22 10:22:30 -07:00
Kalman Hazins
bb052366f7
Change symbols inside hashes to 1.9 JSON-like syntax
2014-05-22 12:35:12 -04:00
gpurkins
dcc7a755c9
added conditional for temporary interfaces
2014-05-21 18:21:05 -04:00
Pavel Karoukin
6fc1dd7b8a
For #3855
...
CoreOS vagrant's configuration code look for interface names starting with 'enp0', but in my case when deploying CoreOS image to libvirt environment interfaces had names 'ens4v1', 'ens5v2'
This patch should fix it, but it might be part of a bigger issue and having these two patterns might not cover all possible configurations.
2014-05-20 02:29:53 +02:00
Mitchell Hashimoto
aa2cbae89b
Merge pull request #3818 from RabidGuppy/master
...
Windows Guest: cannot assign static IP addresses in private_network when running vagrant on windows host
2014-05-19 02:14:06 -07:00
Mitchell Hashimoto
05ccf88c5f
Merge pull request #3830 from cstrahan/nixos-guest
...
Add NixOS guest support
2014-05-18 02:22:02 -07:00
Charles Strahan
38d749dc1f
Add NixOS guest support
2014-05-18 04:14:33 -04:00
Mitchell Hashimoto
9c7fb05d5f
guests/darwin: respect NFS mount options [GH-3791]
2014-05-17 12:24:24 -07:00
Mitchell Hashimoto
34b7cace7b
synced_folders/rsync: rsync__chown [GH-3810]
2014-05-17 12:01:50 -07:00
Jason D. Smith
18894b81cd
Inverting the hash of driver_mac_addresses returned by machine.provider.capability(:nic_mac_addresses).
...
The previous code expected the hash to use the mac addresses as the keys, the original code had the indices as the keys.
2014-05-16 12:56:30 -04:00
Trey Hyde
ca986455f3
guests/freebsd: Properly register that the rsync_pre capability belongs to FreeBSD rather than defining re-defining it for Linux.
2014-05-13 18:07:35 -07:00
Teemu Matilainen
f87c7a9bc9
synced_folders\rsync: remove non-portable '-v' flag from chown [GH-3743]
...
Aside of the already fixed OpenBSD, at least Solaris `chown` seems not
to support the `-v` option, so remove it from all guests.
2014-05-10 23:51:12 +03:00
Mitchell Hashimoto
c7abea2032
guests/linux: exclude symlinks from chown search [GH-3744]
2014-05-09 16:08:11 -07:00
Matt Behrens
a8fb2de7aa
remove `-v` flag from post-rsync `chmod`
...
OpenBSD `chmod` does not support the `-v` flag, which causes
`vagrant up` to fail.
2014-05-09 18:31:23 -04:00
Mitchell Hashimoto
8bb9d18260
guests/windows: nicer error if winrm not in use to configure networks [GH-3651]
2014-05-06 19:00:58 -07:00
Mitchell Hashimoto
326e8012f7
guests/*: setup rsync_pre properly
2014-05-06 18:40:55 -07:00
Mitchell Hashimoto
4ef237a642
synced_folders/rsync: mkdir before rsync
2014-05-06 13:41:37 -07:00
Mitchell Hashimoto
e7a5dc4f8e
Revert "Merge pull request #3643 from cammoraton/rhel7-plugin-fixes"
...
This reverts commit 919d0b9f4b
, reversing
changes made to 924c47feb3
.
2014-05-06 13:26:44 -07:00
Mitchell Hashimoto
9d2d4b9675
guests/mint: don't need to inherit from ubuntu class
2014-05-06 12:50:35 -07:00
Chris Hubbard
fd86f5a57e
Add Linux Mint detection
...
* Linux Mint is a popular distribution based on Ubuntu
* When creating a VM based on Linux Mint, it cannot detect
that it is based on Ubuntu and it is detected as just linux
and configure_networks fails
* https://github.com/mitchellh/vagrant/issues/3647
2014-05-06 15:09:33 -04:00
Mitchell Hashimoto
919d0b9f4b
Merge pull request #3643 from cammoraton/rhel7-plugin-fixes
...
Rhel7 guest plugin fixes
2014-05-06 08:42:24 -07:00
Jonas Stendahl
8b5869fdc5
Don't wrap the escaped password in single quotes.
2014-05-06 15:47:44 +02:00
cammoraton
6d6282f1be
Finished up fixes. Removed some artifacts.
2014-05-06 08:48:01 -04:00
cammoraton
5345c1479a
Fix configure networks and templates to work off polled interface names.
2014-05-06 08:44:36 -04:00
cammoraton
6ff81dc29c
Add interfaces_list capability to get list of interfaces via biosdevname
...
or dmesg parsing.
2014-05-06 08:44:15 -04:00
Mitchell Hashimoto
19050d26cf
guests/debian: setting hostname works without 127.0.1.1 [GH-3271]
2014-05-04 18:32:33 -07:00
Mitchell Hashimoto
04369b3afe
guests/linux: LANG=en for ifconfig [GH-3029]
2014-05-04 17:47:16 -07:00
Shawn Neal
c99a1fb2ae
Display deprecation warning for unused halt config properties
...
halt_timeout and halt_check_interval will be removed in the next version of Vagrant, 1.7.
2014-05-01 09:03:49 -07:00
Shawn Neal
f4b67df978
Removed unused halt timeout and check interval settings.
2014-05-01 08:00:41 -07:00
Shawn Neal
068b5cf0b9
Move Windows symlink re-establishment after reboot into capability
...
This reduces the complexity and likelihood of provisioner bugs.
2014-04-30 17:36:36 -07:00
Nikhil Benesch
2df36892dd
synced_folders/rsync: only chown when necessary [GH-3525]
...
Run remote rsync as root to guarantee that rsync can write to guestpath.
This obviates the need to chown the guestpath to the SSH user prior to
sync.
This brings a substantial speedup (2x on a moderately-sized shared
folder) and properly triggers filesystem notifications on only the files
changed by a given sync.
2014-04-25 15:00:12 -04:00
Shawn Neal
62f5be49d5
Cleaner DHCP detection for Windows guests
2014-04-22 13:28:51 -07:00
Shawn Neal
728ec28f2d
Windows GuestNetwork directly uses the communicator
...
- Fixed slight Law of Demeter violation
- Make guest access through comm consistent
2014-04-22 11:54:34 -07:00
Shawn Neal
929e41aa5c
Backfilled unit tests for Windows guest support
...
- Fixed typo in helper test
- Removed extraneous machine.config prefix from Windows guest config validation
- Added WinRM communicator unit tests
- Added Windows guest capability unit tests
2014-04-22 11:03:37 -07:00
Mitchell Hashimoto
22d9b0eeb2
guests/linux: unmount uses rmdir instead of rm -rf to avoid catastrophe
2014-04-21 13:56:30 -07:00
Mitchell Hashimoto
19c9973a0d
guests/linux: set a timeout on nc
2014-04-21 13:55:40 -07:00
Mitchell Hashimoto
e578e91e3a
providers/docker: implement port checker for remote machine
2014-04-21 13:55:39 -07:00
Mitchell Hashimoto
3edfe6deaf
providers/docker: remove synced folders after docker rm
2014-04-21 13:55:28 -07:00
Mitchell Hashimoto
5b960efcb1
commands/rdp: no need fo rthe guest cap
2014-04-21 13:54:17 -07:00
Mitchell Hashimoto
76a7c63f8b
guests/windows: detect the port for RDP
2014-04-21 13:54:15 -07:00
Mitchell Hashimoto
7705ad76c6
guests/windows: use the public_address cap
2014-04-21 13:54:14 -07:00
Mitchell Hashimoto
993256643d
guests/windows: rdp_info cap
2014-04-21 13:54:13 -07:00
Mitchell Hashimoto
4145aa6bcd
privisioners/shell: wait for reboot if we can
2014-04-21 13:53:54 -07:00
Mitchell Hashimoto
abd4185565
guests/freebsd: fix network name for vtnet
2014-04-21 13:53:45 -07:00
Mitchell Hashimoto
2057d513cb
Update CHANGELOG
2014-04-21 13:53:44 -07:00
Maximilian Fischer
a7b70dcf70
OpenBSD support for virtio interfaces
...
- When using KVM as provider you were not able to configure network
interfaces that use virtio, because the interface name was strictly
set to 'em'
2014-04-21 13:53:42 -07:00
Mitchell Hashimoto
96971194bc
update CHANGELOG
2014-04-21 13:53:41 -07:00
Doug Stevenson
cc343d1a7d
Add config for FreeBSD guest plugin. Allow device to be configurable
2014-04-21 13:53:39 -07:00
Mitchell Hashimoto
a908b191b0
guests/windows: fix network configuring
2014-04-21 13:51:11 -07:00
Mitchell Hashimoto
d600e83e6d
guests/windows: configure networks
2014-04-21 13:51:09 -07:00
Mitchell Hashimoto
d86a9ecade
guests/windows: fix invalid templating
2014-04-21 13:51:08 -07:00
Mitchell Hashimoto
b81f430f31
guests/windows: initial vagrant-windows extraction
2014-04-21 13:51:06 -07:00
Nikhil Benesch
ee5d8e2358
guests/linux: rsync chown if either user or group incorrect [GH-3485]
2014-04-15 16:55:49 -04:00
Mitchell Hashimoto
0fc7d59222
guests/coreos: fix test for docker daemon running
2014-04-14 17:01:00 -07:00
Mitchell Hashimoto
f47213f9b2
guests/coreos: docker_daemon_running cap [GH-3425]
2014-04-10 13:42:12 -07:00
Mitchell Hashimoto
9529dd8cde
guests/linux: rsync chown group if owner now set [GH-3223]
2014-04-09 11:03:24 -07:00
Mitchell Hashimoto
b20ff91784
guests/linux: SMB mounts with symbol passwords work [GH-3202]
2014-04-09 10:46:56 -07:00
Mitchell Hashimoto
a6725710d3
guests/linux: don't show SMB password in plaintext on error [GH-3203]
2014-04-09 10:42:39 -07:00
Nick DeMonner
65ce0ebe97
Fix hostname change
2014-04-04 07:20:17 -07:00
Nick DeMonner
b240d40303
Merge branch 'support_fedora_predictable_network_interface_names' of https://github.com/khiro/vagrant into fix-fedora
2014-04-04 07:17:45 -07:00
Mitchell Hashimoto
a74a57ddf6
Merge pull request #3323 from mattoxbeckman/fix/master/reload-arch-udev-rules
...
guests/arch: Fix for issue #3322 , a followup to issue #2591 .
2014-04-01 22:01:12 -07:00
Philipp Franke
5180f4b647
guests/suse: fix error on shutdown
2014-03-30 18:28:23 +02:00
Mattox Beckman
17a3dff77f
This is a followup to issue #2591 .
...
Arch linux will rename its eth0 device unless an empty file is placed in `/etc/udev/rules.d/`.
In order for the new rules to take effect, we need call `udevadm control --reload`.
2014-03-25 20:44:42 -05:00
Mitchell Hashimoto
9fc5540841
guests/debian: don't return from block [GH-3283]
2014-03-20 17:52:31 -07:00
Mitchell Hashimoto
600d01d792
Merge pull request #3102 from sax/smartos
...
guests/smartos
2014-03-20 17:50:20 -07:00
Mark Harrison
43f732b32d
Add mount_nfs_folder capability to omnios guests
...
Refs issue #3280
2014-03-20 17:06:49 -04:00
Andy Clarke
26e0c85488
Fix SMB shared folder mount error with password containing symbols.
2014-03-17 17:38:34 -04:00
khiro
9edb299c0d
Fix a network configuration issue of Fedora [GH-1997]
...
Support Predictable Network Interface Names.
2014-03-14 15:12:51 +09:00
Mitchell Hashimoto
ca00ad8257
guests/linux: one more time
2014-03-13 09:48:53 -07:00
Mitchell Hashimoto
3c02caf811
guests/linux: check for proper owner [GH-3186]
2014-03-13 09:48:22 -07:00
Mitchell Hashimoto
00d73eabda
guests/linux: rsync only chown if invalid user/group [GH-3186]
2014-03-13 09:47:34 -07:00
Eric Saxby
f36d372b32
Resolve confusion around SmartOS rsync_pre
...
rsync should *always* be pre-installed in SmartOS (global and local zones), as
it's part of the kernel. Previous commits incorrectly attributed #rsync_install
to running rsync, rather than to installing the rsync command.
2014-03-12 22:35:32 -07:00
Mitchell Hashimoto
a6eafd6a12
synced_folders/rsync: execute rsync_post cap if it exists [GH-3163]
2014-03-12 18:43:59 -07:00
cuberri
5ef0d881d0
add rsync_install capability to tinycore guest
2014-03-13 01:41:52 +01:00
Matt Way
16d093dc8a
use global namespace for class IO naming conflict
2014-03-12 07:52:11 -04:00
Eric Saxby
330642fa42
Smartos guest capabilities includes rsync_pre
2014-03-11 01:25:08 -07:00
Eric Saxby
31da3860e5
Add unit tests for smartos compatibility
2014-03-10 18:52:20 -07:00
Eric Saxby
a0fee69d04
Add SmartOS detection and mount plugins
2014-03-10 11:52:55 -07:00
Mitchell Hashimoto
cae4a1c554
guests/redhat: force remove files so it works with pty
2014-03-05 16:22:55 -08:00
Mitchell Hashimoto
0fe4a4af26
synced_folders/smb: basically working
2014-02-27 08:13:05 -08:00
Eugene Ware
85d2f24607
more robust coreos checking
2014-02-15 15:50:11 +11:00
Eugene Ware
2d01691e0a
detect latest version of coreos
2014-02-15 15:03:06 +11:00
Mitchell Hashimoto
e909b91bfd
guests/linux: public key insertion is more robust
...
contents can have newlines (or not)
2014-02-12 22:11:33 -08:00
Mitchell Hashimoto
8c85e57db1
guests/linux: proper logic on ro
2014-02-07 16:04:36 -08:00
Michael Hahn
d68544a906
Ensure options[:mount_options] is defined before checking if it includes key
2014-02-06 14:06:47 -08:00
Michael Hahn
3631b250b7
Fix #2945 : Reference correct options variable
2014-02-06 13:59:56 -08:00
Mitchell Hashimoto
226dbccef8
guests/linux: don't chown VB shared folders if readonly [GH-2442]
2014-02-04 16:01:14 +01:00
Teemu Matilainen
a9337aba22
guests/{free,net}bsd: add `insert_public_key` capability
...
Copy the cap to missing *bsd variants.
2014-02-04 01:09:29 -03:00
Teemu Matilainen
e5f3f1ffe3
Merge pull request #2892 from tmatilai/openbsd
...
OpenBSD is not a Linux derivative
2014-02-03 18:27:23 -08:00
Teemu Matilainen
3b5d6c65fd
guests/openbsd: Ensure that `PKG_PATH` is set when installing rsync
...
Depending on the shell, `PKG_PATH` is not necessarily set when Vagrant
runs `pkg_add`.
Ref: GH-2917
2014-02-03 23:17:54 -03:00
Teemu Matilainen
c11820c848
guests/openbsd: Add back `insert_public_key` cap
...
Copied from linux guest.
2014-02-03 08:29:54 -03:00
Teemu Matilainen
767f147469
guests/openbsd: OpenBSD is not a Linux derivative
2014-02-03 08:27:57 -03:00
Mitchell Hashimoto
f63ef395f1
Merge branch 'rsync_install' of https://github.com/tmatilai/vagrant into tmatilai-rsync_install
...
Conflicts:
plugins/guests/freebsd/plugin.rb
plugins/guests/netbsd/plugin.rb
plugins/guests/openbsd/plugin.rb
2014-02-03 12:12:49 +01:00
Teemu Matilainen
023d3115dd
guests/{free,net,open}bsd: Add `shell_expand_guest_path` capability
2014-02-02 17:38:24 -03:00
Teemu Matilainen
e634cdc824
guests: rename LinuxShellExpandFailed error to ShellExpandFailed
...
Make the error generic for all guests (`DarwinShellExpandFailed` didn't
even exist) and not tied to synced folder.
2014-02-02 17:26:54 -03:00
Teemu Matilainen
ee2ae94c25
synced_folders/rsync: Install `rsync` on guest if needed
...
Add new `rsync_installed` and `rsync_install` guest capabilities
to detect and install `rsync`.
Also copy `rsync_pre` capability to all Unix guests.
2014-01-31 02:12:57 -03:00
Mitchell Hashimoto
64649f8f1d
guests/coreos: restart etcd after configuring networks [GH-2852]
2014-01-18 11:05:29 -08:00
Mitchell Hashimoto
72702b4884
guests/tinycore: TinyCore Linux support
2014-01-16 17:18:54 -08:00
Mitchell Hashimoto
53347abbca
Merge pull request #2819 from stoned/guest-netbsd
...
Add NetBSD guest support
2014-01-16 10:37:54 -08:00
Mitchell Hashimoto
1d2da09953
Merge pull request #2824 from masteinhauser/patch-1
...
guests/solaris: More specific Solaris <11 detection.
2014-01-15 20:11:18 -08:00
Teemu Matilainen
e979b84d36
synced_folders/nfs: Register `nfs_client_install` caps to correct distros
2014-01-15 23:37:02 -03:00
Myles Steinhauser
b34fdf010b
More specific Solaris 11 detection
2014-01-14 09:56:01 -05:00
Myles A. K. Steinhauser
e5445442c1
More specific Solaris <11 detection.
...
Note: This will probably break on Solaris 12+, but not certain of a better approach for now.
2014-01-14 09:52:27 -05:00
Stoned Elipot
10169f8e99
Add NetBSD guest support
2014-01-14 07:25:35 +01:00
Mitchell Hashimoto
2e3fcf576c
synced_folders/rsync: allow guests to execute things before
2014-01-10 17:51:44 -08:00
Mitchell Hashimoto
91380c0650
synced_folders/nfs: automatically install NFS client if possible
...
If guests have the following capabilities, automatic NFS client
installation will be done:
* nfs_client_installed - Checks if the NFS client is installed
* nfs_client_install - Install the NFS client
Support is already in for Debian, Ubuntu, RedHat, CentOS, and Fedora
2014-01-09 16:58:20 -08:00
Mitchell Hashimoto
5e835f4201
Merge pull request #2792 from smoyer/redhat_hostname_patch
...
guests/redhat: use FQDN for hostname
2014-01-08 20:58:59 -08:00
Mitchell Hashimoto
732a03c1c4
guests/linux: properly quote and insert public key
2014-01-08 15:12:26 -08:00
smoyer
3964298504
This was introduced in 1.4.1 with d26c147
.
...
This PR sets the active hostname back to the name specified in the Vagrantfile (fqdn) and updates the unit tests.
Setting it to the short name causes loads of problems while configuring the system. I've had issues with sudoers hostname matching, Weblogic certificate generation and a few others. Even if I changed all of the Chef recipes, the fqdn is set in /etc/sysconfig/network so the active hostname will switch to the fqdn after a reboot.
2014-01-08 17:49:54 -05:00
Mitchell Hashimoto
b3a9e6a088
insert_public_key cap, and use that if it exists
2014-01-03 11:13:21 -08:00
Ryan S. Brown
23ce05d166
detect fedora 19 and 20
2014-01-02 11:09:11 -06:00
Seginoviax
12176515da
Add funtoo guest support. Based heavily on https://github.com/mitchellh/vagrant/pull/1840
2013-12-31 17:33:10 -08:00
Seginoviax
a4c74ea87a
Revert "Add funtoo guest support. Based heavily on https://github.com/mitchellh/vagrant/pull/1840 "
...
This reverts commit 3559c08086
.
2013-12-31 17:12:19 -08:00
Seginoviax
3559c08086
Add funtoo guest support. Based heavily on https://github.com/mitchellh/vagrant/pull/1840
2013-12-31 00:54:32 -08:00
Mitchell Hashimoto
28720b181d
guests/ubuntu: remove mount_nfs cap
2013-12-30 08:12:10 -08:00
Teemu Matilainen
572cdeeda9
guests/linux: Emit upstart event on VirtualBox using the expanded path
2013-12-22 08:55:59 -03:00
Teemu Matilainen
2fab268ede
guests/linux: Emit upstart event `vagrant-mounted` also on NFS mounts
...
Complements #2502 , and fixes error on VMs without upstart (like #2596 ).
2013-12-22 08:46:24 -03:00
Mitchell Hashimoto
489506ff83
guests/linux: up the amount of retries for NFS mounts
2013-12-18 08:38:31 -08:00
Charlie Huggard
d26c1471d7
Refactor ChangeHostName for EL.
...
Based off of the Debian pattern. Need to add tests.
Related to #2653 and #2592
2013-12-16 01:52:39 -06:00
Markus Kern
c8a09b344b
guests/redhat: Don't error if ifdown fails [GH-2614]
2013-12-10 20:04:36 +00:00
Mitchell Hashimoto
05b2e03586
guests/redhat: don't ifdown non-existent interfaces [GH-2614]
2013-12-10 09:04:20 -08:00
Mitchell Hashimoto
ed4cfa913c
Merge pull request #2620 from ShonM/master
...
guests/freebsd: Update FreeBSD configure_networks with less shell specifics
2013-12-10 08:53:34 -08:00
Paul Hinze
abe0731d2e
guests/{ubuntu,debian}: fix change_host_name for trailing dots [GH-2610]
...
When `/etc/hosts` contained a FQDN with a trailing dot, the `\b` in the
sed expression would not match, since dot is not considered to be a word
character.
Fix this by regexp-escaping the hostname search, and matching the end of
the line on optional space followed by additional characters.
Also add some tests that extract the regexp used by sed and verify that
it does what we want. These will hopefully serve us in the future if we
ever need to test additional edge cases.
2013-12-09 18:56:45 -06:00
Shon M
3e1471fb53
Update FreeBSD configure_networks with less shell specifics
2013-12-09 17:27:54 -07:00
Matt Alexander
edeb5f0e9f
Add the symlink back that disabled renaming of network interface names
2013-12-07 14:59:40 -06:00
Matt Alexander
df67d2b44f
Run "ip link set [eth1] down" before running "netctl start [eth1]" in Arch guest network configuration
2013-12-07 14:22:19 -06:00
Mitchell Hashimoto
f3d71de022
Merge pull request #2591 from instilled/arch-netctl-fix
...
guests/arch: netctl fix
2013-12-06 15:02:41 -08:00
Teemu Matilainen
c566465bdc
Fix testing if initctl exists
...
If /sbin/initctl was not found, the command (`false && ...`) returned
non-zero exit code leading to Vagrant throwing an exception.
2013-12-06 18:17:41 -03:00
me
2a75c34d62
systemctl wasn't a good idea
2013-12-05 16:01:44 +01:00
me
158d82ea39
Avoid udev rule masking and configure ifaces with sed instead.
2013-12-05 15:16:59 +01:00
Mitchell Hashimoto
d9dc2d6cfd
guests/linux: --no-wait on emit [GH-2564]
2013-12-03 12:14:10 -08:00
Elan Ruusamäe
1df4f5a8ed
require pld/cap/change_host_name
2013-11-27 09:38:28 +02:00
Elan Ruusamäe
2416149aa3
fix hostname change on pld
2013-11-27 09:35:18 +02:00
Mitchell Hashimoto
fc190fad9f
guests/redhat: DHCP_HOSTNAME set to hostname [GH-2441]
2013-11-26 11:28:47 -08:00
Mathieu Lecarme
09a86bd70a
Sometimes, ifdown is not enough.
2013-11-26 13:40:50 +01:00
Mitchell Hashimoto
195f0d9639
guests/linux: emit upstart event for vagrant mounted if avail [GH-2502]
2013-11-25 11:31:15 -08:00
phinze
688bca14f5
refactoring ubuntu/debian change_host_name
...
there's been a lot of churn around this code, so i figure it was worth
trying to clean it up.
- the methods were doing a lot, so make them into template methods with
one helper per step
- spread out /etc/hosts regexp into a couple of helper variables for
clarity
- remove handling for broken hostname implementations (like basing all
of the checks on name.split('.')[0]), since it seems reasonable to
remove code dedicated only to handling broken boxes
- DRY up the shared code between debian/ubuntu implementations, which
clarifies the differences as well
- add unit tests around the behavior; this will help us in the future
to separate flaws in our understanding from flaws in implementation
- includes a new DummyCommunicator in tests which should be useful in
supporting additional unit testing of this kind
- manually tested this on squeeze, wheezy, precise, quantal, raring,
and saucy successfully.
handles the issue in #2333
2013-11-24 11:46:12 -06:00
Mitchell Hashimoto
45702f9d44
Merge branch 'issue_2333' of https://github.com/elliotsegler/vagrant into elliotsegler-issue_2333
...
Conflicts:
plugins/guests/ubuntu/cap/change_host_name.rb
2013-11-23 15:38:49 -08:00
Mitchell Hashimoto
23bdbd6fd8
synced_folders/nfs: specify nfs_udp false to disable udp [GH-2304]
2013-11-23 13:43:48 -08:00
Mitchell Hashimoto
88425f0146
Merge pull request #2390 from borgstrom/master
...
core: allow owner & group to be supplied as an Integer and skip lookup
2013-11-23 11:46:50 -08:00
Mitchell Hashimoto
a4fe547536
Merge pull request #2444 from tmatilai/debian_hostname_fix
...
guests/debian: Fix hostname setting also in Debian, part N
2013-11-23 11:45:38 -08:00
Mitchell Hashimoto
5b71cf87f3
Merge pull request #2450 from onejli/master
...
guests/redhat: ifdown ethN before munging ifcfg-ethN
2013-11-23 11:40:02 -08:00
Mitchell Hashimoto
dcf57bd2cc
guests/linux: increase sleep time btween NFS mount retries
2013-11-23 11:35:27 -08:00
elliotsegler
803e78a5d4
fixing error in comment #2333
2013-11-23 10:18:59 +08:00
Mark Peek
d5dcf84d62
Allow the FreeBSD plugin to install without bash [GH-2485]
...
The default shell is "bash -l" which does not get installed by default
on FreeBSD. This change allows the plugin to override the default shell
and use a known installed shell (sh).
2013-11-22 15:30:12 -08:00
elliotsegler
a80de51054
Fixes recommended by phinze for #2333
2013-11-22 11:55:17 +08:00
Jonathan Li
1ad756d52c
ifdown ethN before munging ifcfg-ethN (i.e. removing previous vagrant config for network interface)
2013-11-02 12:35:37 -07:00
Teemu Matilainen
2073a1a939
Fix hostname setting also in Debian, part N
...
Port #2384 / #2383 for Debian guests.
2013-10-31 21:39:45 -03:00
Heikichi Umehara
c0eb9bd35a
fix nfs mount fail with freebsd.
2013-10-21 08:42:57 +09:00
Evan Borgstrom
9c8ead1ca3
Restore correct pathing
2013-10-17 22:45:23 -04:00
Evan Borgstrom
ebb85b57fd
Allow owner & group to be supplied as an Integer and skip lookup
2013-10-17 22:40:21 -04:00
Nathan Mische
0c238741d3
Fixing so localhost hosts file entry is not lost when updating hostname. Addresses Issue #2383 .
2013-10-17 12:56:59 -04:00
Teemu Matilainen
330f72eae2
Fix hostname setting also in Debian
...
Same fix as #2334 .
2013-10-15 15:57:40 -03:00
Teemu Matilainen
535eb35206
Use old name instead of hard coded 'precise64'
2013-10-15 15:57:15 -03:00
Mitchell Hashimoto
f988db97bd
Merge pull request #2334 from elliotsegler/issue_2333
...
guests/ubuntu: Hostname and FQDN should be done in one line
2013-10-14 20:21:53 -07:00
Doug MacEachern
6c9edbbdc6
guests/esxi: Add support for VMware ESXi guests
2013-10-08 21:47:32 -07:00
Laurent Raufaste
157a7081ba
Update boundary usage in the sed regexp to update the hosts file
2013-10-08 20:14:22 -04:00
Elliot Segler
06aaa6e6ea
#2333 , more fixes - right order to get fqdn right
2013-10-08 17:53:27 +08:00
Elliot Segler
1abcf1e54f
Better fix for issue #2333 , does localhost as well so we dont break local name resolution for things like puppet
2013-10-08 17:01:54 +08:00
Elliot Segler
9ca6fbe8f4
Hostname and FQDN should be done in one line
2013-10-06 15:33:00 +08:00
Mitchell Hashimoto
d970c4e03f
Merge pull request #2254 from Caustic/fix-hostname-debian
...
guests/debian,ubuntu: Fixed fqdn handling
2013-09-25 10:36:33 -07:00
François Charlier
c1228ae206
Allow to change the DHCP_HOSTNAME on RedHat
2013-09-24 23:48:10 +02:00
Alan Braithwaite
7d53047a92
Fixed fqdn handling on debian/ubuntu
...
The issue was that the old method simply didn't work. When the hosts
file should look like:
127.0.1.1 host.fqdn.com host
It looked like:
127.0.1.1 host.fqdn.com host old.fqdn.com old
Or this if the user didn't set a fqdn
127.0.1.1 host host old.fqdn.com old
This patch fixes that.
2013-09-22 00:33:24 -07:00
Pete Michaud
e65ac705b4
fixed missing backtick
2013-09-21 21:41:06 -05:00
Mitchell Hashimoto
4d03a7359e
guests/linux: fail after a number of attempts
2013-09-20 17:52:36 -07:00
Mitchell Hashimoto
62e357ffcd
guests/linux: only successful mount if exit status 0
2013-09-20 17:50:29 -07:00
Mitchell Hashimoto
b9801f44a0
guests/linux: try `id -g` to determine group as well [GH-2197]
2013-09-16 20:51:09 -07:00
Mitchell Hashimoto
517ac20822
guests/coreos: proper guest IP detection [GH-2146]
2013-09-06 11:30:53 -07:00
Mitchell Hashimoto
ab7cee1ae0
Merge pull request #2107 from fgrehm/remove-dead-code
...
core: Remove dead code from Guest
2013-09-01 13:47:18 -07:00
Mitchell Hashimoto
7897de3fbd
guests/ubuntu: enable the new mount_nfs stuff
2013-09-01 13:46:09 -07:00
Mitchell Hashimoto
8bc01c7cb1
Merge pull request #1717 from toretore/master
...
guests/ubuntu: Emit Ubuntu Upstart 'vagrant-mounted' (regression)
2013-09-01 13:43:26 -07:00
Fabio Rehm
77dd626341
guest: Remove dead code
2013-09-01 17:41:17 -03:00
Mitchell Hashimoto
e5b35d1c83
core: support "mount_options" for arbitrary mount options [GH-1029]
2013-09-01 12:25:21 -07:00
Mitchell Hashimoto
826c8a884d
Merge pull request #1801 from davegudge/patch-1
...
core: use getent to get group ID
2013-08-28 17:02:46 -07:00
Mitchell Hashimoto
5a18be1827
Merge pull request #2052 from janth/solaris11-guest
...
guests/solaris11: Added solaris11 guest plugin
2013-08-28 16:38:54 -07:00
Tomoyuki Sahara
91db685295
more capabilities for OpenBSD guest
2013-08-28 13:12:09 +09:00
Jan Thomas Moldung
75c03726b9
Added solaris11 guest plugin
2013-08-14 16:10:18 +02:00
Boohbah
903578269b
Use hostnamectl in plugins/guests/arch/cap/change_host_name.rb
2013-08-10 00:41:18 +00:00
Timothy Sutton
caaaa9fe28
Support verify_vmware_hgfs in darwin guest.
2013-08-09 15:00:38 -04:00
Mitchell Hashimoto
b2f32543d9
Merge pull request #1689 from philippfranke/master
...
guests/suse: Add ability to configure networks
2013-08-09 11:21:26 -07:00
Mitchell Hashimoto
8e065abf3c
Merge pull request #2026 from ppp0/patch-set-hostname-debian
...
plugins/guests/debian: Forcing eth0 to come up
2013-08-09 11:11:57 -07:00
Mitchell Hashimoto
d24caac5ae
Merge pull request #1914 from b2jrock/darwin-guest
...
OS X (darwin) guest support.
2013-08-09 10:53:29 -07:00
Timothy Sutton
23962baac9
Darwin: use :sudo for communicate.test
2013-08-07 17:10:32 -04:00
Timothy Sutton
a3b9428f67
Darwin: code debug cleanup
2013-08-06 10:18:38 -04:00
Timothy Sutton
8b925e6c15
Update Darwin guest description
2013-08-06 10:18:12 -04:00
Timothy Sutton
78ec8b5809
Darwin: clean up temporary network interface file downloaded from guest
2013-08-06 10:17:52 -04:00
Timothy Sutton
300d151608
Darwin guest: mount_vmware_shared_folder cap for use with vmware_fusion provider
...
- It's not clear whether it's possible to mount individual shares
using 'mount -t vmhgfs', as the vagrant-vmware-fusion provider now does
for Linux guests. Any mount from '.host', even if not a valid share
name, succeeds and mounts _all_ shares in their respective directories
at the root of the mountpoint. Instead, we symlink each directory from
its place in '/Volumes/VMware Shared Folders'
2013-08-06 10:17:12 -04:00
Brian Johnson
7d0a92c5b4
Remove the +1 offset, I resolved the issue with the 'phantom' en1
...
interface. For some reason interfaces still skip en1, but provided we
enumerate based on order and not name, things should work smoothly.
2013-08-05 18:45:42 -07:00
Brian Johnson
e5ce19ff11
Tabs must die.
2013-08-05 18:07:45 -07:00
Brian Johnson
3611ff39f4
Change mount_nfs_folder cap to be more like the linux version, adding a
...
bunch of retires rather than a long sleep.
Add DarwinNFSMountFailed error. This might move be more appropriate at
the plugin level.
Integrate some of tvsutton's work in configure_networks to get the
implementation closer to working in both fusion and virtualbox.
Add shell_expand_guest_path capability (also copied from linux)
2013-08-05 17:39:44 -07:00
Philipp Gysin
b6f2443bd5
Forcing eth0 to come up
2013-08-05 18:02:12 +02:00
Artur Roszczyk
bf21021cfc
Cleanup of CoreOS guest plugin
2013-08-04 02:15:37 +02:00
Artur Roszczyk
c8cd47ff6d
Make slaves connecting to first node
2013-08-03 22:53:31 +02:00
Artur Roszczyk
d8c10ad901
LVP for coreos guest support
2013-08-03 20:31:42 +02:00
Artur Roszczyk
5010738043
Improve Gentoo guest detection
2013-08-03 19:55:17 +02:00
Brian Johnson
5606aa8b1e
Working implementation with NFS, still some caveats:
...
- There's a lengthy sleep in there, probably could use a back-off loop
- en1 seems totally worthless on vbox, I skip it and just use the en2 it creates.
2013-07-31 18:07:04 -07:00
Mitchell Hashimoto
c0404e3f63
Mount NFS with UDP protocol by default [GH-1706]
2013-07-23 17:36:48 -05:00
Mitchell Hashimoto
f4c36795df
Properly determine shared folder path even if .profile echos [GH-1677]
2013-07-19 23:53:53 -04:00
Mitchell Hashimoto
cbf1417964
Change solaris shut down command to properly shut down [Gh-1506]
2013-07-18 11:48:20 -04:00
Mitchell Hashimoto
bc7b481dbe
Get the deb/ubuntu change host name correct
2013-07-17 13:39:32 -05:00
Mitchell Hashimoto
9d6a6cc9a1
Allow hotplug on deb/ubuntu change host name [GH-1929]
2013-07-17 05:03:48 -07:00
Fabio Rehm
2d4a3994ea
Merge pull request #1734 from frankshearar/arch-configure-network-needs-template
...
No TemplateRenderer for arch's configure_networks
2013-07-16 18:20:46 -07:00
Mitchell Hashimoto
b941a31a3f
Merge pull request #1929 from fpletz/fix/master/fix_dhcp_on_debian_ubuntu_guests
...
DHCP renewal on Debian/Ubuntu after setting hostname
2013-07-16 16:25:47 -07:00
Mitchell Hashimoto
608bc7c0eb
NFS exports with single quotes now work properly [GH-1166]
2013-07-16 16:23:33 -07:00
Franz Pletz
65f275a5a8
DHCP renewal on Debian/Ubuntu after setting hostname
...
On Debian and Ubuntu guests, when the new hostname of the guest box is
set, the DHCP client (isc-dhcp-client) won't renew its DHCP lease with
the new hostname. Executing "ifdown -a; ifup -a" to reinitialize all auto
interfaces fixes this issue.
Furthermore, as vagrant will now actually wait until a DHCP lease is
acquired, it is guaranteed that the the correct domainname is set from
DHCP before calling other provisioners like puppet, that rely on it.
This fixes puppet/facter sometimes failing to find the fqdn fact on an
LXC guest when the DHCP server is responding too slow.
2013-07-15 12:54:52 +02:00
Brian Johnson
2b7aca1d83
Highly limited osx (darwin) guest plugin.
...
- Tested on mountainlion/virtualbox
- virtualbox shared folders will not work (no vboxvsf support)
- Must use at least 2GB of RAM or the os will refuse to boot(mountainlion requirement)
To begin, create a mountainlion vm in virtualbox. You will need to install from scratch most likely, and assign at least 2GB of ram for it to install.
Create 2 network interfaces, the first one a NAT interface, second a hostonly interface.
'vagrant package' the VM.
In your vagrant file, be sure that the synced folder is disabled:
config.vm.synced_folder "vagrant", "/vagrant", disabled: true
2013-07-10 18:21:06 -07:00
Fabio Rehm
c38b2c053f
Merge pull request #1698 from Govinda-Fichtner/gentoo_fix
...
fix uninitialized constant error for gentoo plugin
2013-06-13 20:13:04 -07:00
Mitchell Hashimoto
ba242cd978
Merge pull request #1714 from aszeszo/master
...
Use proper detection for Solaris
2013-06-09 15:55:24 -07:00
Mitchell Hashimoto
958efc28a7
Merge pull request #1760 from tunix/netctl
...
fixed networking issues of Arch Linux with netctl changes
2013-06-09 15:52:02 -07:00
Mitchell Hashimoto
5e48391b05
read_ip_address linux cap only reads ip of first device [GH-1799]
2013-06-09 13:27:08 -07:00
JP Rosevear
1029538b24
Set ARPCHECK=no as an environment variable with doing ifup #921
2013-06-09 14:14:33 -04:00
Dave Gudge
699ac0ac96
Defining the group of a shared folder
...
Symtom: The group ID for groups that are not backed by a user account (e.g. admin) cannot be obtained from the id command.
Consequence: The shared folder group can only be set to a group where by a user account of the same name exists.
Solution: Correcting the method to define the group ID by looking up the group ID via the group name.
2013-06-06 13:11:49 +02:00
Deepak Seshadri
497ebb0f72
Fix setting persistent hostname on SLES guests.
2013-05-31 19:31:43 +10:00
Alper Kanat
dbfce678bf
fixed networking issues of Arch Linux with netctl changes
2013-05-24 00:19:31 +03:00
Frank Shearar
2eb97b518c
You need to include the module to use the class without ::s.
2013-05-22 16:29:58 +01:00
Frank Shearar
caf4ea722e
Import the TemplateRenderer (like the other guests do).
2013-05-14 21:22:19 +01:00
Tore Darell
b111cb6392
Emit 'vagrant-mounted' on Ubuntu in mount_virtualbox_shared_folder capability
...
Also includes the same, but commented out, for mount_nfs capability
2013-05-11 16:11:57 +02:00
Andrzej Szeszo
c47522658e
#1639 Better Solaris OS detection (use portable method that actually works)
2013-05-10 15:19:47 +02:00
Govinda Fichtner
270913b7b9
fix uninitialized constant error for gentoo plugin
2013-05-07 11:38:46 +02:00
Philipp Franke
c92ce0f4d0
Add OpenSUSE network settings
2013-05-03 12:39:26 +02:00
Mitchell Hashimoto
4d26f01b7b
SmartOS should be OmniOS
2013-05-01 19:02:00 -07:00
Fabio Rehm
4625d77072
More reliable Ubuntu and Debian guest detection
...
When dealing with lxc containers, '/proc/version' will have information
about the host machine kernel that can possibly have information about
an Ubuntu / Debian host, messing up with guest container detection.
2013-05-01 21:00:39 -03:00
Mitchell Hashimoto
7f32af980e
SmartOS support for setting hostnames [GH-1672]
2013-04-30 15:07:41 -07:00
Mitchell Hashimoto
efcb25693e
Update CHANGELOG for GH-1639
2013-04-22 20:29:17 -07:00
Andrzej Szeszo
b0ad782249
#1639 Better Solaris OS detection
2013-04-22 19:05:15 +02:00
Mitchell Hashimoto
c4422d7198
FreeBSD and OpenBSD guest detection
2013-04-10 14:15:02 -07:00
Mitchell Hashimoto
d76f964470
Linux guest detection
2013-04-10 13:39:21 -07:00
Mitchell Hashimoto
ba07d303e5
More robust hostname checking for RedHat [GH-1566]
2013-04-10 09:33:33 -07:00
Mitchell Hashimoto
66ff86fda5
Auto-detect policy server IP for CFEngine
2013-04-08 15:30:41 -07:00
Mitchell Hashimoto
4d3159ff7e
Fix configure_networks for Fedora as well
2013-04-08 11:08:14 -07:00
Mitchell Hashimoto
78d4d0a790
Networks come back up properly after reboot on RedHat [GH-921]
2013-04-08 11:02:03 -07:00
Mitchell Hashimoto
fd157476b4
extend should be include for TemplateRenderer in caps
2013-04-08 10:47:19 -07:00
Mitchell Hashimoto
7b9e5fd4a7
Include should be extend for class methods
2013-04-04 12:25:40 -07:00
Mitchell Hashimoto
439499fc11
Solaris capabilities
2013-04-04 12:25:10 -07:00
Mitchell Hashimoto
5e09577a76
Lots more guest capabilities converted
2013-04-04 12:09:40 -07:00
Mitchell Hashimoto
2c362d4d28
FreeBSD capabilities
2013-04-04 11:56:42 -07:00
Mitchell Hashimoto
8bf9fb17b1
Remove freeBSD config because it isn't used anymore
2013-04-04 11:50:05 -07:00
Mitchell Hashimoto
0e4e347308
Fedora capabilities
2013-04-04 11:49:26 -07:00
Mitchell Hashimoto
7f33081387
Convert arch to capabilities
2013-04-04 11:39:58 -07:00
Mitchell Hashimoto
0fbe9b0aca
Ubuntu change_host_name cap
2013-04-03 23:53:17 -07:00
Mitchell Hashimoto
22f3ea6606
Remove the linux config, not used anyways
2013-04-03 23:50:12 -07:00
Mitchell Hashimoto
067f431ee9
Better debugging on searching for capabilities
2013-04-03 23:46:39 -07:00
Mitchell Hashimoto
2f232e0175
Halt and mount NFS are caps
2013-04-03 23:33:20 -07:00
Mitchell Hashimoto
61d2f9f96f
SetHostname uses new cap system
2013-04-03 23:18:12 -07:00
Mitchell Hashimoto
63f28a9011
Nicer error messages for new linux caps
2013-04-03 23:14:24 -07:00
Mitchell Hashimoto
2a542dab02
Switch configure_networks to capabilities system
2013-04-03 23:08:33 -07:00
Mitchell Hashimoto
28d3f274d8
First capability for linux
2013-04-03 23:01:43 -07:00
Mitchell Hashimoto
52f3847b0a
Laying the foundation for the new guest plugin
2013-04-03 21:47:57 -07:00
Mitchell Hashimoto
665450614a
Don't error if machine shuts down really quickly on graceful [GH-1505]
2013-03-28 15:52:00 -07:00
Elan Ruusamäe
bd8a24e945
add basic pld linux support
...
PLD Linux Distribution: https://www.pld-linux.org/
2013-03-24 19:38:56 +02:00
Conor Horan-Kates
761a64f899
adding ability to detect solaris operating system to linux guest plugin
2013-03-11 08:42:06 -07:00
Mitchell Hashimoto
cd36088d2f
Whitespace
2013-03-07 11:35:04 -08:00
Mitchell Hashimoto
0eef208d2d
Relax retry constrains on mounting NFS
2013-02-08 16:18:48 -08:00
Mitchell Hashimoto
6afb4326fa
Move NFS to a built-in middleware
2013-02-08 15:34:04 -08:00
Mitchell Hashimoto
4ba0fc821e
Support mounting NFS folders with spaces in FreeBSD [GH-1229]
2013-01-30 22:19:13 -08:00
Mitchell Hashimoto
bb97351060
Change "channel" to "communicate" in all guests
2013-01-30 10:54:53 -08:00
Mitchell Hashimoto
0fc7cf7f02
Guest `halt` implementations no longer depend on machine state
2013-01-22 12:09:35 -08:00
Mitchell Hashimoto
09126b20d3
Merge pull request #1283 from eladroz/master
...
Fixing guest code for RH & SUSE
2013-01-06 17:38:09 -08:00
Jordi Llonch
793ad58e96
fedora 17 & 18 support
2013-01-07 05:23:07 +11:00
Elad Rosenheim
0915186b26
Fix guest plugin for RH & SUSE
2012-12-31 10:38:36 +02:00
Mitchell Hashimoto
1d2beff649
Guests to V2
2012-11-06 21:14:45 -08:00
Mitchell Hashimoto
6df6f6764f
Remove plugin activation. It really isn't necessary.
...
It was only used in a couple places and it isn't necessary since you can
do the loading within the actual blocks themselves.
2012-11-03 20:29:34 -07:00
Mitchell Hashimoto
335d9fad1f
Merge pull request #1191 from lorello/master
...
Fix change_host_name on Ubuntu Hardy
2012-11-02 21:32:59 -07:00
Mitchell Hashimoto
625741ab6a
Allow hostnames to be subset of box name for Ubuntu
2012-10-12 20:06:54 -07:00
LoreLLo
fc0a0d04e5
fix change_host_name for Ubuntu Hardy
2012-10-12 18:11:52 +02:00
Hugo Wetterberg
17a6b64309
Emitting vagrant-mount events when mounting nfs volumes
2012-09-13 09:14:40 +02:00
Dan Midwood
bdf72c5554
Use the communicate interface for ArchLinux guests
2012-09-02 18:00:11 +01:00
Mitchell Hashimoto
f193d69fbc
Fix up the debian guest to work with the new machine API
2012-08-20 14:58:58 -07:00
Mitchell Hashimoto
1efee6edcb
Use the new communication interface for Ubuntu guest
2012-08-20 12:15:42 -07:00
Mitchell Hashimoto
b328e95045
Make puppet provisioner work with latest machine changes.
...
Specifically it was still reference env[:vm] which is now
`env[:machine]`.
2012-08-20 12:13:04 -07:00
Mitchell Hashimoto
aad022a626
Switch all `channel` to `communicate` in the linux guest
2012-08-12 19:03:31 -07:00
Mitchell Hashimoto
0eddda3552
Halt works with new machine.
...
This required some modifications to the linux guest implementation. And
the other guests will have to be modified as well. This is because
`channel` is now `communicate`.
2012-08-12 18:54:52 -07:00
Bob Maerten
3dda019cac
change_host_name should change mailname too
...
On Debian systems config.hostname directive should change /etc/mailname
in order to prevent problems with default mailer trying to contact
default vm's name.
2012-07-13 15:07:56 +02:00
Mitchell Hashimoto
53d8c28c8e
Move guests to Vagrant.plugin("1", :guest)
2012-06-26 16:28:49 -07:00
Mitchell Hashimoto
590f648fc0
Built-in plugins use Vagrant.plugin("1", :config)
2012-06-26 16:02:44 -07:00
Mitchell Hashimoto
41bc8e7454
Move Config::V1::Base to Vagrant::Plugin::V1::Config
2012-06-24 17:06:11 -07:00
Mitchell Hashimoto
76f7da0618
FreeBSD guest network config upload must be a file.
2012-06-22 20:56:41 -07:00
Mitchell Hashimoto
da98ce59b3
Basic fixes to the configure_networks for Arch
2012-06-01 14:26:34 +02:00
Marco Monteiro
f6c33fb4ef
Fix reference to undefined variable
2012-06-01 14:24:15 +02:00
Marco Monteiro
5bbabaf5a5
Fix multiple ethernet interface support on Arch Linux
2012-06-01 14:23:15 +02:00
Mitchell Hashimoto
459d82689e
Get rid of autoload use in Guests
...
I don't use `activated` here because I'd really like to optimize
performance as much as possible, and loading files from disk is
generally slow. So instead of using `activated` I load the file at the
last possible moment which is when the exact class is being requested.
I don't think many people will do this outside of the core, and I'm not
too concerned.
2012-05-23 15:57:43 -07:00
Benedikt Böhm
46d72bb53a
fix typo in change_host_name
2012-05-14 17:16:41 +02:00
Mitchell Hashimoto
9956e6d012
Better directory structure for plugins
2012-04-20 16:53:01 -07:00