Adam Paul
2dfe520eb8
add capability test before attemping to use capability
2018-03-15 11:45:42 -04:00
Adam Paul
76551a1692
Fix graceful_halt_timeout issue #8486
2018-03-15 10:38:07 -04:00
Brian Cain
279bceffb9
Merge pull request #9398 from drscream/smartos-inheritance-solaris
...
More explicit Solaris 11 and inherit SmartOS from Solaris
2018-02-12 15:02:30 -08:00
Hannes Körber
3082ea502e
Debian: Point hostname to 127.0.1.1 in /etc/hosts
...
Closes #9403
2018-02-10 20:54:51 +01:00
Brian Cain
a1932b8d21
Merge pull request #9265 from trombik/atomic_interface_restart
...
Atomically apply new hostname.if(5)
2018-02-09 14:27:07 -08:00
Hannes Körber
3fa3e995a9
Debian: Renew DHCP lease on hostname change
2018-02-01 16:46:23 +01:00
Thomas Merkel
93c571adbf
Be sure solaris11 is Solaris version 11 and no distribution based on (Open)Solaris
...
`uname -sr` return also 5.11 on OmniOS, SmartOS which is not the same as Oracle Solaris 11.x. SmartOS and OmniOS are inherit from Solaris and not from Solaris 11. For that reason we need a more explicit check that a solaris11 guest is a real Solaris version 11, for that reason the /etc/release file is checked.
2018-01-25 13:28:15 +01:00
Thomas Merkel
21febf6b6a
SmartOS should be an inheritance of solaris
...
SmartOS is a distribution based on illumos which is the successor of OpenSolaris.
2018-01-25 13:26:18 +01:00
Chris Roberts
55460379f1
Merge pull request #9315 from basvandervlies/ifconfig_obsolete
...
ifconfig is replaced by ip command suite. So use "ip addr" and failback
2018-01-16 20:12:18 -08:00
Chris Roberts
0bf589861c
Merge pull request #9212 from mahaag/master
...
Use basename for setting hostname on Suse
2018-01-16 20:08:05 -08:00
Chris Roberts
b1c38c282e
Support SMB mount option overrides
2018-01-12 17:23:00 -08:00
Chris Roberts
b0fc6a06a1
Merge pull request #9294 from chrisroberts/e-smb
...
SMB synced folders enhancements
2018-01-12 15:02:08 -08:00
Chris Roberts
53fbf67d9f
Merge pull request #9295 from mcandre/patch-2
...
recognize solaris alternatives
2018-01-12 13:11:16 -08:00
Chris Roberts
f5888a4200
Merge pull request #9307 from wink-y/amazon-perform
...
Modify the matching pattern of guest os for amazon linux
2018-01-12 13:08:01 -08:00
Brian Cain
5bf75dcfb3
Merge pull request #9338 from chrisroberts/fix-ubuntu17-networking
...
Update Debian guest configure networks
2018-01-10 10:11:47 -08:00
Bas van der Vlies
de62baed6b
as requested change to test to command:`which`
2018-01-08 08:53:33 +01:00
Chris Roberts
913b5639e5
Do better handling given netmasks
2018-01-03 17:26:08 -08:00
Chris Roberts
a36a84c85a
Only apply netplan configuration if systemd is in use
2018-01-03 16:31:49 -08:00
Chris Roberts
75a03ff9e9
Update available debian networking options
2018-01-03 13:56:01 -08:00
Bas van der Vlies
a5deb20dcb
ifconfig is replaced by ip command suite. So use "ip addr" and failback
...
to ifconfig
2017-12-28 20:31:04 +01:00
winky
e99c47907f
Modify the matching pattern of guest os for amazon linux
2017-12-27 13:57:47 +09:00
Chris Roberts
2caf109a03
Mark passwords as sensitive within guest capabilities
2017-12-21 12:49:34 -08:00
Andrew Pennebaker
98eb8cef03
recognize solaris alternatives
...
As the Solaris project is dead, recognize that Solaris alternatives like DilOS and SmartOS feature a Solaris compatible kernel and capabilities.
2017-12-21 13:07:00 -06:00
Chris Roberts
00fa50c296
SMB enhancements
2017-12-21 09:55:19 -08:00
Chris Roberts
e85ef1655b
Always remove credentials file after mount attempts
2017-12-21 09:55:19 -08:00
Brian Cain
f046482cfb
[WIP] systemd networkd for debian guests
2017-12-20 16:42:51 -08:00
Chris Roberts
04e35784e7
Merge pull request #9205 from mcandre/patch-1
...
dragonflybsd: extend FreeBSD
2017-12-13 15:42:25 -08:00
Tomoyuki Sakurai
35d3be865f
Atomically apply new hostname.if(5)
...
This fixes an issue when the interface being configured is the
interface through which ssh traffic is forwarded.
In a complex scenario, one needs to disable the default interface for
NAT, and use other interface for ssh. In this case, when vagrant run
`ifconfig #{ifname} inet delete`, the second ifconfig that is supposed
to restore interface settings will never be called. This might be a rare
need, but it is also strongly recommended to use `netstart` when
reconfiguring interfaces after updating `hostname.if(5)`.
The issue can be triggered when ssh connection has issues between two
`ifconfig` commands.
2017-12-13 18:34:17 +09:00
Alexander von Gluck IV
263a2c4d9b
haiku: Improve capabilities. (public keys, halt)
2017-12-05 18:19:15 -06:00
Brian Cain
c3a4f8d72a
Merge pull request #7805 from kallisti5/master
...
Add support for the Haiku operating system
2017-12-05 14:03:43 -08:00
Matthias Haag
a139dd2b59
use basename for setting hostname
2017-11-22 11:09:51 +01:00
Andrew Pennebaker
2b87d12925
dragonflybsd: extend FreeBSD
...
Reuse FreeBSD guest code for installing rsync, etc., as dragonfly- and freebsd are very similar, especially with regard to package management.
2017-11-19 19:41:25 -06:00
Brian Cain
c7ec0a42a5
( #8941 ) Include WinSSH Communicator
...
This commit requires the winssh communicator class wihtin the public_key
capability for Windows. Prior to this commit users could run into a
situation where Vagrant would check if the machine could speak in WinSSH
and fail on an uninitialized constant.
2017-10-24 12:02:01 -07:00
Chris Roberts
6eca74afc7
Merge pull request #9012 from benh57/winssh_communicator_fix
...
Fix guest network setup with winssh communicator
2017-10-23 15:41:53 -07:00
Brian Cain
a849cd2f7d
( #8963 ) Unify Solaris Guests
...
This commit removes some duplicated code within the Solaris11 guest
implemnentation and instead relies on the Solaris guest for the majority
of its guest capabilities.
2017-10-05 11:31:12 -07:00
Brian Cain
fb1501d48a
Merge pull request #8874 from taliesins/HandleChefProvisionerRebootRequest
...
Handle chef provisioner reboot request
2017-10-04 09:37:02 -07:00
Ben Hines
ea518f6c78
test() defaults to powershell for winssh, no need to pass it
2017-09-29 19:30:07 -07:00
Ben Hines
6b4584efb6
Use the 'powershell' shell when running powershell commands. Allows winssh communicator to function
2017-09-29 19:17:49 -07:00
Chris Roberts
2451c859e8
Merge pull request #8746 from mastersin/alt
...
Add ALT Linux platforms guest detection and network configuration support (#8745 )
2017-09-06 17:49:38 -07:00
Antonio Terceiro
acda71edd9
plugins/guests/kali: fix file permissions
...
Those Ruby files are not standalone scripts, so there is no point in
having them being executable.
2017-09-06 12:21:23 -03:00
Brian Cain
0ac26be4ef
( #8917 ) Fix shell_expand_guest_path capability
...
Prior to this commit, when the guest capability attempted to expand a
path with spaces it would quote the path passed in. However if the path
also had a relative path those quotes would end up making `printf`
ignore it and not properly expand the path fully. This commit updates
that to first escape the quotes of a path and then pass in the new path
to be expanded.
2017-08-25 10:02:36 -07:00
Chris Roberts
93f6451261
Retain winssh_ method prefix on auth key helper
2017-08-21 14:48:52 -07:00
Rui Lopes
7fac854cf3
winssh communicator: simplify the authorized_keys file modification
2017-08-21 14:42:18 -07:00
Rui Lopes
4ab0dc19b1
winssh communicator: retain the authorized_keys file acl permissions
2017-08-21 14:42:18 -07:00
Rui Lopes
aeac480683
winssh communicator: fix public key insertion
2017-08-21 14:42:18 -07:00
Brian Cain
2b8f7f67ea
Add unit tests for shell_expand_guest_path function
2017-08-15 09:33:29 -07:00
Brian Cain
61c501cc65
Ensure paths with spaces are preserved
...
Prior to this commit, if a user set the `destination` path to include a
space, the `shell_expand_guest_path` function would remove that space
and return a partial path. This commit updates that to quote the path to
be expanded to preserve the entire path.
2017-08-14 15:34:10 -07:00
Taliesin Sisson
820d80852c
If this is called during a shutdown then exception code 1115 is throw.
2017-08-10 11:14:52 +01:00
Brian Cain
5ee3b0c3b9
Merge pull request #8760 from marblenix/fix/Unable_to_list_network_interfaces_on_FreeBSD
...
Fix vagrant not being able to list network devices on some FreeBSD boxes.
2017-07-21 14:27:05 -07:00
Evgeny Sinelnikov
015d98e76c
guests/alt: Fix flavor and network configure with unit tests
2017-07-11 00:35:28 +03:00