323 Commits

Author SHA1 Message Date
Chris Roberts
35e823ca12
Merge pull request #13335 from chrisroberts/ruby-3.3
Relax ruby version constraint to allow Ruby 3.3
2024-01-18 12:55:59 -08:00
Chris Roberts
d7ec3bffe9 Relax ruby version constraint to allow Ruby 3.3 2024-01-18 12:04:24 -08:00
Chris Roberts
3f00495a52 Update vagrant_cloud dependency constraint
Updates the vagrant_cloud dependency constraint to a minimum of 3.1.1
which includes a path prefixing fix that resolves an issue affect direct
uploads to Vagrant Cloud.
2024-01-17 16:16:14 -08:00
Chris Roberts
e719113165 Update constraint on vagrant_cloud library 2023-09-25 15:09:29 -07:00
Chris Roberts
51adb12547 Add architecture support for boxes
Introduce support for handling box architecture. Adds a new
`box_architecture` setting that defaults to `:auto` which will perform
automatic detection of the host system, but can be overridden with a
custom value. Can also be set to `nil` which will result in it fetching
the box flagged with the default architecture within the metadata.

Box collection has been modified to allow existing boxes already
downloaded and unpacked to still function as expected when architecture
information is not available.
2023-09-14 16:15:03 -07:00
Chris Roberts
e958c6183a Adds initial HCP config support
Adds initial basic support for HCP based configuration in vagrant-go.
The initalization process has been updated to remove Vagrantfile parsing
from the client, moving it to the runner using init jobs for the basis
and the project (if there is one). Detection is done on the file based
on extension for Ruby based parsing or HCP based parsing.

Current HCP parsing is extremely simple and currently just a base to
build off. Config components will be able to implement an `Init`
function to handle receiving configuration data from a non-native source
file. This will be extended to include a default approach for injecting
defined data in the future.

Some cleanup was done in the state around validations. Some logging
adjustments were applied on the Ruby side for better behavior
consistency.

VirtualBox provider now caches locale detection to prevent multiple
checks every time the driver is initialized.
2023-09-07 17:26:10 -07:00
Chris Roberts
a7135c000b Apply license adjustments and fixes
Add configuration file for automated license modifications, remove
automated licese modifications from specific locations, and update the
license set in the gem specification.
2023-08-10 17:05:19 -07:00
Chris Roberts
b494c30ced Adjust extension location for correct install path
With existing layout the built shared library will end up in the `./lib`
directory, but the expected location being checked is `./lib/vagrant`.
Adjusting the path within the extension directory results in the proper
adjustment to the installation path.
2023-06-21 09:43:28 -07:00
Chris Roberts
415b006ebd Add helper for loading OpenSSL providers
On OpenSSL 3, engines have been deprecated being replaced by providers.
The Ruby openssl library supported loading specific engines, but there
is no replacement currently using providers. The winrm communicator
specifically relies on a MD4 which OpenSSL has marked as legacy and no
longer loads by default.

The extension included loads the legacy provider as well as the default
provider. The legacy provider includes MD4, thus allowing winrm to
function again.
2023-05-25 15:36:55 -07:00
sophia
30e5521760 Restrict rubyzip more strictly to avoid unintentional updates when v3.0 lands 2023-01-03 16:01:20 -08:00
sophia
138fbf9a59 Bump dependencies 2023-01-03 16:01:20 -08:00
sophia
d69287f850 Bump Ruby version to 3.x 2023-01-03 16:01:16 -08:00
Chris Roberts
b481ae547c
Merge pull request #12979 from dcermak/bump-net-ssh
Bump net-ssh to ~> 7.0
2022-11-08 14:54:21 -08:00
Chris Roberts
5139379d47
Merge pull request #12981 from dcermak/bump-rspec
Relax rspec dependency to ~> 3.11
2022-11-08 14:01:10 -08:00
Dan Čermák
0ad126309a Bump net-ssh to ~> 7.0
This also requires a bump of net-scp and net-sftp
2022-11-08 13:57:26 -08:00
Chris Roberts
9417d0c2e5 Set minimum Ruby at 2.7, remove 2.6 from testing 2022-11-03 11:55:28 -07:00
Dan Čermák
7a4b45282e
Relax rspec dependency to ~> 3.11
No need to be so overly strict, this is a test dependency, so failures will
surface immediately.
2022-11-01 15:53:19 +01:00
Chris Roberts
867b120c8f
Merge pull request #12833 from dcermak/relax-grpc-tools-version
Relax overly strict grpc-tools version requirement
2022-09-21 13:27:27 -07:00
Dan Čermák
a6e61bcc3d
Relax overly strict grpc-tools version requirement
"~> 1.41.1" limits us to 1.41 which is already a year old now, relaxing this to
"~> 1.41" allows us to pick up fresher and maintained releases.
2022-08-08 14:21:54 +02:00
Dan Čermák
c5f4cce4f1
Add support for Ruby 3.1
The biggest change comming with Ruby 3.1 is that net/ftp is no longer bundled
with Ruby but distributed as a separate gem.
2022-08-08 10:10:24 +02:00
Sophia Castellarin
14e825b8d0
Merge pull request #12753 from dcermak/bump-fake_ftp
Bump fake_ftp to ~> 0.3.0 & adjust tests
2022-08-01 13:23:00 -05:00
Dan Čermák
7e9f310dfc Bump fake_ftp to ~> 0.3.0 & adjust tests
Sadly, fake_ftp is unmaintained since 2021, but all other alternatives haven't
been touched for even longer :-/
2022-07-28 14:57:27 -05:00
Dan Čermák
3246849b1a Bump version of ed25519 to ~> 1.3.0 2022-07-28 14:45:49 -05:00
Paul Hinze
31b88946c0
Update rspec to 3.11.0
This ensures that we get the Ruby 3 keywords support that landed in that
version https://github.com/rspec/rspec-mocks/pull/1394

Unfortunately this does not magically fix our test failures, just
ensures that expectations are being handled properly across Ruby
versions going forward.
2022-04-25 12:26:39 -05:00
sophia
f3a1a9caa6
Add dependency on common protos for error details 2022-04-25 12:26:24 -05:00
Paul Hinze
a5f0064a86
Adapt nix configs for Vagrant needs
* Remove postgres, docker, k8s, and DO requirements
 * Add ruby
2022-04-25 12:25:55 -05:00
Chris Roberts
8e8f6d2621
Include dependency for rgl 2022-04-25 12:25:50 -05:00
sophia
aff0fa9494
Include vendored go libs 2022-04-25 12:23:57 -05:00
sophia
c3ee750db1
Add gogo 2022-04-25 12:23:57 -05:00
sophia
c02baa9219
Start server as vagrant command 2022-04-25 12:23:50 -05:00
Chris Roberts
716f4c0717
Merge pull request #12564 from chrisroberts/vbox-hostonly-validat
Validate VirtualBox hostonly network range
2021-11-02 11:03:44 -07:00
Chris Roberts
855b72b975 Update minimum Ruby version to 2.6 2021-11-01 14:21:44 -07:00
Dan Čermák
2a95a887e1
Bump listen version to ~> 3.6
(cherry picked from commit 8678ead4d72de6b79111adabc90aa3877d8777fb)
2021-08-02 14:59:18 +02:00
Chris Roberts
42ecc62c25 Bump vagrant_cloud dependency constraint minimum 2021-07-22 16:01:02 -07:00
Dan Čermák
db38599124
Remove no longer required gem webmock
This gem was added a long time ago and probably used to test the functionality
that is now provided by the vagrant_cloud gem
2021-07-06 16:22:24 +02:00
Chris Roberts
24a00ee3b3 Bump constraints on childprocess and net-scp 2021-07-02 14:45:32 -07:00
Chris Roberts
cd7226c7bb Include rexml dependency 2021-07-02 14:38:25 -07:00
Chris Roberts
e7a6f397da Updates for Ruby 3.0 2021-06-21 15:57:46 -07:00
Dan Čermák
016911965d
Bump listen version to ~> 3.5 2021-04-27 10:27:11 +02:00
Chris Roberts
a08597d787 Tighten constraints on net-ssh to ensure functionality. Update patch
Keep the constraint on net-ssh tight so we can be confident that the
    patching will be successful and that a net-ssh release won't inadvertently
    cause our local updates to become non-functional.

    Fix patch to only update the behavior for RSA based keys when the server
    is recent enough to include the signature changes
2021-04-13 10:58:59 -07:00
sophia
6d9b48fec1 Bump vagrant_cloud gem 2021-03-18 14:47:02 -05:00
Dan Čermák
d996166098 Bump bcrypt_pbkdf version
There were no functional changes between 1.0.0 and 1.1.0:
b5d1a921fc...v1.1.0
so this update should be safe
2021-03-01 10:59:12 +01:00
Chris Roberts
034cb8c59e Update net-ssh constraint to non-prerelease version
To prevent resolution issues with the introduction
    of a prerelease constraint, update the net-ssh constraint
    to be a minimum at the latest release. Include monkey
    patches to include support for wanted host key algos.
    The monkey patches are only applied to the latest
    net-ssh currently and will be ignored once the current
    prerelease has been fully released.
2021-02-25 17:07:00 -08:00
Dan Čermák
d87ed23655
Bump listen gem version and remove ruby_dep
listen no longer depends on ruby_dep and thus this pointlessly drags in another
dependency.
2021-02-22 08:48:56 +01:00
sophia
acef4692af Bump vagrant cloud version 2021-02-19 14:16:07 -06:00
Dan Čermák
1916f69425
Update rake to ~> 13.0 2020-12-04 14:54:50 +01:00
Chris Roberts
b8e1460449 Bump net-ssh to 6.2 release client for host key algorithm fix 2020-11-05 16:30:15 -08: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
e2f71dd55d Update mime gem 2020-10-28 15:57:45 -05:00
Chris Roberts
6d37138100
Merge pull request #11905 from mcandre/issue-11904
update rake
2020-09-22 11:35:30 -07:00