Chris Roberts
e85ef1655b
Always remove credentials file after mount attempts
2017-12-21 09:55:19 -08: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
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
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
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
Brian Cain
2b8f7f67ea
Add unit tests for shell_expand_guest_path function
2017-08-15 09:33:29 -07:00
Brian Cain
8b1043c199
Remove stub methods and replace with allows for rpsec 3
2017-08-04 15:02:59 -07:00
Chris Roberts
1a62743bc5
Update rspec to recent version and fix deprecations
2017-08-03 17:54:07 -07: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
Evgeny Sinelnikov
5ff176a82c
guests/alt: capability tests for ALT Platforms
2017-07-10 00:52:24 +03:00
Chris Roberts
cef38eefd0
Add public key capability to Windows guests for winssh communicator
2017-07-07 11:26:32 -07:00
Caleb Marble
2aceb03b19
Fix vagrant not being able to list network devices on FreeBSD boxes.
2017-07-07 09:03:38 -05:00
James Nugent
b0b9d044b5
guests/smartos: Add/fix various guest capabilities
...
This commit adds a variety of fixes for SmartOS guest support:
- Host name setting now works in the global zone and in non-global zones
- NFS now works in the global zone and the non-global zone.
- Tests are updated and moved to the (apparently) more modern style
2017-06-16 17:00:50 -04:00
Chris Roberts
60a438396f
Merge pull request #8588 from aligenttimaslat/bugfix/rsync_mkdir_on_windows
...
Fix a problem when using rsync folders on windows clients
2017-06-14 16:41:36 -07:00
James Nugent
b84acaed3c
guests/smartos: Add/fix various guest capabilities
...
This commit adds/changes the following for SmartOS guests:
- modifies the "Halt" capability to use /usr/sbin/poweroff in preference
to /usr/sbin/shutdown with parameters, and modifies the associated
test.
- adds an "InsertPublicKey" capability and tests.
- adds a "RemovePublicKey" capability and tests.
With this commit applied, the vast majority of typical Vagrant workflow
is available to SmartOS global zone guests (provided NFS mounts are used
rather than VMWare shared folders).
2017-05-30 15:18:18 +01:00
Tim Aslat
7f675d723c
Update unit test to match fix
2017-05-18 16:06:27 +09:30
Chris Roberts
c3ba13cd4d
Update capability tests to remove nmcli reload matching
2017-05-10 10:25:55 -07:00
Chris Roberts
1df852c88a
Reduce commands. Allow nm reload/restart to bring interfaces up.
...
Reduce the total number of commands run to configure interfaces. If
a service reload/restart is required, only execute it once instead
of once per device. When nm is managing a device, the explicit up
is not required.
2017-05-01 13:17:17 -07:00
Chris Roberts
414184b76b
guests/rhel: Update network configuration
...
Properly detects NetworkManager on guest as well as devices controlled
by NetworkManager. Provides configuration option to enable/disbale
NetworkManager control on devices.
2017-04-26 13:15:33 -07:00
Chris Roberts
38a5f7c873
Merge pull request #8310 from tsmolka/patch-guest-esxi
...
guests/esxi: Added public_key capability
2017-04-16 08:13:26 -07:00
Chris Roberts
21e195c75a
Merge pull request #7425 from tjuerge/6220-mount_shared_folder-via-ssh
...
Add support for mounting synched folders on windows guest via ssh
2017-04-05 15:11:32 -07:00
Chris Roberts
98b0ad1464
Fix linux guest mount smb capability
2017-03-24 13:42:51 -07:00
Chris Roberts
dbf01572ef
Merge pull request #8122 from chrisroberts/virtualbox/uid-gid
...
Use uid/gid from mount_options if provided for synced folders.
2017-03-06 14:21:11 -08:00
Tobias
d074ac7906
guests/esxi: Added public_key_test
2017-02-28 08:22:05 -08:00
Chris Roberts
0627e33652
Include test coverage on generated arch net config command
2017-02-09 17:41:44 -08:00
Chris Roberts
9f393fc1e0
Use uid/gid from mount_options if provided for synced folders.
...
This also extracts the gid/uid detection and upstart actions into
reusable module to provide consistent behavior.
2016-12-14 12:12:17 -08:00
Chris Roberts
5482692127
guests/linux: Only match interfaces without special characters
2016-11-10 07:19:26 -08:00
Chris Roberts
dd7294b021
Merge pull request #7928 from chrisroberts/rsync/exclude-paths
...
synced_folders/rsync: Quote exclude paths
2016-10-26 07:16:15 -07:00
Chris Roberts
be3fa85853
Merge pull request #7921 from chrisroberts/fix/key-fixups
...
Remove `set -e` usage for better shell compatibility
2016-10-25 14:43:04 -07:00
Chris Roberts
365b98fee6
Merge pull request #7926 from chrisroberts/networking/rhel
...
guests/redhat: Force NetworkManager to reload device configurations
2016-10-25 14:41:07 -07:00
Chris Roberts
05c5aab92a
synced_folders/rsync: Escape exclude paths
2016-10-25 13:59:03 -07:00
Chris Roberts
c39b3fbb76
guests/openbsd: Check package installation after installing package
...
The `pkg_add` command will return `0` when a package requested for
installation is not found. This adds a validation check to ensure
the rsync package is actually installed on the guest.
2016-10-25 12:16:52 -07:00
Chris Roberts
67f3c8b48c
guests/redhat: Force NetworkManager to reload device configurations
...
When configuring network devices force NetworkManager to reload new
configuration files as they appear. This prevents NetworkManager from
attempting to continue managing devices on initial start up.
2016-10-25 07:45:38 -07:00
Chris Roberts
fb4e4320b2
Remove `set -e` usage for better shell compatibility
2016-10-24 10:30:08 -07:00
Chris Roberts
07ce1c6930
Merge pull request #7866 from chrisroberts/guest-linux/network-interfaces-sorting
...
guests/linux: Update network interface sorting implementation
2016-10-10 10:59:52 -07:00
Chris Roberts
a8970281ce
guests/linux: Properly sort interface name types
...
Add failing networking interface list sorting test with example
provided by #7883 . Update sorting logic to properly handle different
types and differing array lengths.
Fixes #7883
2016-10-10 10:22:19 -07:00
Mark Peek
4bf32e3f6d
Fix typo (netmast => netmask) for Photon guest #7808
2016-10-07 12:32:21 -07:00
Chris Roberts
e2b18fc65d
guests/linux: Update network interface sorting implementation
...
Always pull ordered ethernet devices to the head of the list. Ensure
aliases are not included.
2016-10-04 17:25:00 -07:00
Chris Roberts
0300df09fb
guests/linux: Update constant name, freeze constant values
2016-09-30 12:11:54 -07:00
Chris Roberts
9f468d2626
guests/linux: Place ethernet devices at start of device list
2016-09-29 15:33:29 -07:00
Chris Roberts
a7537a6be0
Merge pull request #7726 from chrisroberts/fix/rsync-exclude
...
Ignore files excluded from sync on chown
2016-08-19 09:58:31 -07:00
Chris Roberts
dd6ad2fbf3
guests/linux: only use effective group ID when appropriate
2016-08-17 06:53:26 -07:00
Chris Roberts
185a7dfc2e
guests/rsync do not chown files excluded from sync
2016-08-16 15:13:19 -07:00
Chris Roberts
dd91269491
guests: Prevent ssh disconnect from causing error on halt
2016-08-12 13:25:39 -07:00
Chris Roberts
ce3329e184
guests/linux: Always order discovered network interfaces
2016-08-12 10:31:41 -07:00
Chris Roberts
571659a5d1
guests/openbsd: include -h option on shutdown
...
For OpenBSD versions prior to 5.7 the `-h` option _must_ be provided
to the `shutdown` command when `-p` is used. Later versions no longer
require the `-h` option but still allow it for compatibility.
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sbin/shutdown/shutdown.8?rev=1.40&content-type=text/x-cvsweb-markup
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sbin/shutdown/shutdown.c?rev=1.40&content-type=text/x-cvsweb-markup
2016-08-10 09:14:08 -07:00
Jose Luis Duran
820607bbf6
Fix `authorized_keys` permissions for BSDs
...
This is an extension of a6760dd8e7
,
applied to BSD guests.
Related to #7610
2016-07-25 18:25:58 -03:00
hendrenj
41063204ca
added unit tests for .remove_public_key method in VagrantPlugins::GuestLinux::Cap
2016-07-19 11:45:46 -06:00