3472 Commits

Author SHA1 Message Date
Chris Roberts
867d65b079 Remove access token parameter if found on URL 2021-03-15 15:17:48 -07:00
Chris Roberts
51382a0d0a Deprecate hook and disable access token parameter by default
This sets the `authenticate_box_url` hook as deprecated and also
    disables the cloud auth middleware from adding an access token
    as a URL parameter by default. An environment variable has been
    added which can be used for re-enabling the access token URL
    parameter behavior if required for some legacy system which does
    not support the authorization header.
2021-03-15 14:46:46 -07:00
Connor Martin
e041bc7998 add checksum test 2021-03-11 17:47:08 -06:00
Sophia Castellarin
1c976f26ae
Merge pull request #12223 from soapy1/test-double-fix
Use test doubles instead of 'true'
2021-03-10 17:16:18 -06:00
sophia
7c8e204b8c Use test doubles instead of 'true' 2021-03-10 16:44:20 -06:00
Chris Roberts
8a69d0c4da
Merge pull request #12225 from chrisroberts/resolution-isolation
Activate builtin specs on startup, provider better plugin install errors
2021-03-09 11:38:14 -08:00
Chris Roberts
ae48e960fc Add test for behavior difference when running outside of installer 2021-03-09 08:06:10 -08:00
Chris Roberts
320fb81824 Clean up tests to handle modifications 2021-03-08 17:14:53 -08:00
Sophia Castellarin
33586066f9
Merge pull request #12201 from kpy3/main
FreeBSD updated ansible to py37-ansible
2021-03-08 16:33:39 -06:00
Sophia Castellarin
990d94ed9d
Merge pull request #12152 from dpausp/fix-nixos-networking
Fix network config for recent NixOS releases
2021-03-08 15:42:10 -06:00
Sophia Castellarin
0c653a3d4f
Merge pull request #12211 from soapy1/get-default-dhcp-ip
Get default dhcp ip from a matching host ip
2021-03-08 13:57:46 -06:00
Sophia Castellarin
ade9ecdde7
Merge pull request #12186 from soapy1/vagrant-destroy-exit-code
Don't count not created machines as declined when destroying
2021-03-08 13:54:03 -06:00
sophia
5d3c37126f Get default dhcp ip from a matching host ip 2021-02-24 15:53:27 -06:00
Sophia Castellarin
d111596446
Merge pull request #12188 from soapy1/vagrant-does-not-reference-empty-string-vm
Don't try to find "" by prefix in the machine index
2021-02-23 14:24:17 -06:00
Sophia Castellarin
181b4ea890
Merge pull request #12177 from soapy1/apply-download-opts-to-metadata
Apply download options to metadata requests
2021-02-23 13:26:53 -06:00
Sophia Castellarin
6f1ab0ed5e
Merge pull request #12181 from soapy1/alpine-configure-networks
Check if interface exists before shutting it down
2021-02-23 13:21:19 -06:00
Sophia Castellarin
6a63a1bae5
Merge pull request #12184 from soapy1/vbox-synced-folders
Extract os friendly mount name for vbox shared folders
2021-02-23 13:17:55 -06:00
Sophia Castellarin
f2a1e25783
Merge pull request #12189 from soapy1/box-metadata-download-error
Raise error if downloading box metadata fails
2021-02-23 12:39:42 -06:00
sophia
a2fdbc5625 Don't count not created machines as declined when destroying 2021-02-22 16:14:16 -06:00
sophia
220f346d2b Make shell script for loop shell agnostic 2021-02-22 12:36:54 -06:00
Sergey Yelin
e95a7f3e8a
FreeBSD updated ansible to py37-ansible 2021-02-20 18:35:07 +03:00
sophia
4b67216d71 Raise error if downloading box metadata fails 2021-02-12 17:07:04 -06:00
sophia
ab1c3c2547 Don't try to find "" by prefix in the machine index 2021-02-11 15:59:15 -06:00
sophia
b30a87ce6c Extract os friendly mount name for vbox shared folders 2021-02-10 15:25:56 -06:00
sophia
ccbdcd46d0 Fix minimal Vagrantfile test
A minimal Vagrantfile may set the vi mode for ruby
2021-02-10 11:34:50 -06:00
sophia
b24d4252c5 Check if interface exists before shutting it down 2021-02-10 10:44:36 -06:00
sophia
44f527ff8e Apply download options to metadata requests 2021-02-09 18:33:20 -06:00
Tobias dpausp
2d1a82bcf0 Fix network config for recent NixOS releases
The old config style doesn't build anymore on the current
release NixOS 20.09. It stopped working some releases ago.
2021-01-25 00:19:34 +00:00
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