3444 Commits

Author SHA1 Message Date
Sophia Castellarin
a8363db300
Merge pull request #11791 from jbonhag/e/guest-openwrt
Guest support for OpenWrt
2020-12-22 15:05:48 -06:00
sophia
fffe6ea4a5 Add darwin version cap 2020-11-17 19:21:21 -06:00
sophia
8eea6a2301 Mount vmware synced folders for big sur guests 2020-11-17 19:21:21 -06:00
Chris Roberts
7f6ab8e166
Merge pull request #12054 from chrisroberts/f-sol-file-resolv
Update solution file to use DependencyRequests and allow prerelease
2020-11-17 15:36:44 -08:00
Chris Roberts
c4eda3f08f Update solution file to use DependencyRequests and allow prerelease
Maintain the solution file persisting dependency information on
    disk but update the runtime representation to
    Gem::Resolver::DependencyRequest instances which are expected
    by the sets when locating matches.

    Properly abide by prerelease setting in customized sets and
    force prerelease matching when in the builtin set. If a request
    is matched on a prerelease, and the request itself is not set
    to allow prereleases, update it to ensure successful resolution.
2020-11-17 13:02:33 -08:00
Chris Roberts
51f4229df9 Provide coverage on behavior of hooks/triggers
Include coverage when converting a builder to an app for
    execution that validates when hooks and triggers are applied,
    ensure they are applied, and that original style triggers
    are only applied once.
2020-11-13 16:05:06 -08:00
Chris Roberts
18c1607c6e Check dependency list on initialization
When initializing for internal plugin resolution inspect contraints
on all defined dependencies. If a prerelease constraint is detected,
automatically enable prerelease resolution.
2020-11-06 09:07:51 -08:00
Chris Roberts
e9cae1a2f2 Allow stub_env to remove environment variable value 2020-11-06 08:01:16 -08:00
Chris Roberts
9506c7b323 Allow enabling prerelease resolution via environment variable 2020-11-06 07:22:01 -08:00
Chris Roberts
e75c36e1a4
Merge pull request #12011 from amaltson/make-reboot-retry-duration-configurable
Make the max reboot retry duration configurable
2020-11-03 15:47:51 -08:00
Chris Roberts
4751353a5f Fetch reboot env var at run time and keep constant values constant
Keep the default duration as a constant and fetch the custom environment
variable at run time with a fallback to the default. Set the sleep duration
into a constant and add tests covering the expected behaviors when the
default duration is in use as well as the override value. Also match the
environment variable up with the constant just for consistency.
2020-11-03 15:11:10 -08:00
Chris Roberts
eddd21b188
Merge pull request #12017 from chrisroberts/f-token-warning-print
Prevent printing token warning more than once
2020-11-03 14:13:14 -08:00
Chris Roberts
a6f838a830
Merge pull request #12014 from chrisroberts/f-broken-trigger-hook
Fix application of action named triggers/hooks
2020-11-03 14:00:19 -08:00
Chris Roberts
cb6aed6045
Merge pull request #12008 from chrisroberts/f-wsl-port-open
Handle Errno::EALREADY exceptions on port checks
2020-11-03 13:59:03 -08:00
Chris Roberts
311429d1d3
Merge pull request #11936 from hpaskalev/feature/improved_vbox_installation_check
Detection of availability of VirtualBox provider #11929
2020-11-03 13:54:11 -08:00
Chris Roberts
4253f27901 Prevent printing token warning more than once
Mark warning of double tokens set when initially print to prevent
the warning from being shown multiple times during a single run.
2020-11-03 13:47:53 -08:00
Chris Roberts
db24f26daa Track application of action name hooks / triggers
When expanding stack track the origin action name and only apply
it once the stack has completed its expansion. The local env data
is marked with origin action to prevent it from being applied in
nested builders as they are expanded. The value of the stored action
name is checked and invalidated if another action is applied to the
same env in the future so hooks / triggers for that action are
applied as expected.
2020-11-02 10:39:15 -08:00
Arthur Maltson
a2f5d615a0 Make max reboot retry duration configurable
Previously the maximum amount of time Vagrant would poll for whether a
machine has successfully reboot was hard coded to 120 seconds. This
change introduces the VAGRANT_MAX_REBOOT_RETRY_TIMEOUT environment
variable to allow this attribute to be configurable.

Add RSpec tests of the maximum retry logic. Since the maximum retries
are configured as a constant, we'd need to reload the class and that's
fairly ugly to do in RSpec.

Fixes #11695
2020-10-31 18:00:01 -04:00
Chris Roberts
16dc9db76b Handle Errno::EALREADY exceptions on port checks
With WSL port checks can end up resulting in Errno::EALREADY being
raised. When encountered, assume port is unavailable.
2020-10-30 13:09:51 -07:00
Chris Roberts
8b0790168b Check for filter versions and break up box output 2020-10-30 09:26:07 -07:00
Chris Roberts
baa24af179 Remove all unused code related to the deprecated login command 2020-10-30 09:26:07 -07:00
Chris Roberts
78d309a09b Update cloud command to use refactored library implementation
This PR is dependent on the 2.1.0 release of the vagrant_cloud
library. It updates the `cloud` command to use the new interface
for interacting with the Vagrant Cloud API. It also adds support
for direct to backend storage uploads, and defaults to this
method.

Also included is a bit of cleanup refactoring, addition of method
documentation, and fixing up some small issues around custom username
usage within the internal client for authentication.
2020-10-30 09:26:07 -07:00
sophia
8a8eff130a Allow entity to support content disposition 2020-10-28 16:21:42 -05:00
sophia
799ebb32ed Add tests for mime util 2020-10-28 15:57:45 -05:00
sophia
4cdf60cb0a Create MIME type data 2020-10-28 15:57:45 -05:00
Rui Lopes
fcdc63ff89 let the user configure the cloud_init mime part content-disposition filename 2020-10-28 15:57:45 -05:00
Sophia Castellarin
8ad772629b
Merge pull request #11923 from soapy1/arch-smb
Install smbclient when setting up arch smb
2020-10-28 15:40:45 -05:00
Sophia Castellarin
1f9347dd5f
Merge pull request #11996 from soapy1/sles_change_host_name
Don't use hostnamectl if not on system
2020-10-28 15:08:50 -05:00
sophia
0979cfcf4c Don't use hostnamectl if not on system 2020-10-26 17:06:48 -05:00
sophia
e02bf717b9 Fully replace :nfs option with :type => :nfs for synced folders 2020-10-22 14:59:34 -05:00
sophia
dfb0c3dde1 Add ability to specify target for cap command 2020-10-14 17:34:40 -05:00
Hristo Paskalev
02485b6f70 Added test scenario for missing VBoxManage on usability check of VirtualBox provider 2020-10-14 11:42:57 +03:00
Sophia Castellarin
5299eece36
Merge pull request #11939 from soapy1/disk-provider-config
Ensure provider specific config gets transformed into common form
2020-10-13 14:03:34 -05:00
Sophia Castellarin
0b5489f1fd
Merge pull request #11915 from soapy1/enable-vagrant-experimental-tests
Enable experimental vagrant features for tests
2020-10-09 11:55:00 -05:00
sophia
f4640e49ff Ensure provider specific config gets transformed into common form 2020-10-06 16:27:20 -05:00
sophia
0c283e5b50 Install smbclient when setting up arch smb
Leaving out smbclient from the install will cause a cyclical
dependency error.

```
Was getting error
Stderr from the command:

warning: dependency cycle detected:
warning: smbclient will be installed before its cifs-utils dependency
error: failed to commit transaction (conflicting files)
```
2020-09-23 11:59:42 -05:00
sophia
00e4810197 Add mount_name synced folder capability to get name of mount 2020-09-22 16:57:43 -05:00
sophia
11aeafea5c Add tests for smb mount options driven through synced folder capabilities 2020-09-22 16:56:11 -05:00
Sophia Castellarin
70d37e8a9c
Merge pull request #11835 from soapy1/remove-url-token
Download a box by setting auth headers
2020-09-22 15:35:30 -05:00
Sophia Castellarin
0d0935fce7
Merge pull request #11909 from soapy1/fstab-mod
Create fstab if does not exist
2020-09-22 14:29:09 -05:00
sophia
8e9b3e3c0f Enable experimental vagrant features for tests 2020-09-22 14:22:43 -05:00
Chris Roberts
4b07f2d1fa
Merge pull request #11912 from kipal/assume-yes-cloud-version-release
--yes options added to CloudCommand::VersionCommand::Command::Release
2020-09-22 11:38:48 -07:00
Chris Roberts
7103be62b9
Merge pull request #11867 from marxarelli/fix/storage-controller-array-sort
Avoid sorting of controllers with nil boot_priority
2020-09-22 11:36:02 -07:00
Nandor Kiss
cc3cdfe452 --force instead of --yes. 2020-09-22 20:13:30 +02:00
Sophia Castellarin
0b80925c5d
Merge pull request #11907 from soapy1/docker-spec-tests
Docker spec tests
2020-09-22 12:39:41 -05:00
Sophia Castellarin
52908cd5c4
Merge pull request #11889 from soapy1/remove-rsync-from-tests
Remove rsync dep from tests
2020-09-22 12:35:45 -05:00
sophia
55857e6f21 Readd vbox tests 2020-09-17 12:55:00 -05:00
sophia
d1c0f9268c Only run tests for docker 2020-09-17 10:21:50 -05:00
Nandor Kiss
59d398c405 --yes at vagrant cloud version release command. 2020-09-16 22:25:41 +02:00
sophia
32ac59b308 Seperate out docker testst 2020-09-15 17:16:33 -05:00