Commit graph

1362 commits

Author SHA1 Message Date
oss-core-libraries-dashboard[bot]
1a8c7eb042
[COMPLIANCE] Update Copyright and License Headers (Batch 4 of 7) (#13762)
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2025-12-22 16:46:54 +05:30
oss-core-libraries-dashboard[bot]
ea57f40b89
[COMPLIANCE] Update Copyright and License Headers (#13752)
Some checks failed
/ sync-acceptance (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.1 (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.2 (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.3 (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.4 (push) Has been cancelled
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2025-12-04 17:07:40 +05:30
Taru Garg
f3e65f3ef2
Update old Vagrant Cloud Reference (#13693)
* Change Vagrant Cloud reference in error message if no provider is found for a given box to reference Vagrant Public Registry instead.
2025-07-21 15:02:14 +05:30
Kerim Satirli
28f018d746
updates "login" command and registry name (#13687) 2025-07-09 10:54:11 +05:30
Chris Roberts
cc16c60b43
Add basic oscdimg detection on Windows
Check for the oscdimg executable on both the PATH and known installation
location. When not found, provider a user friendly error message about
the missing executable and a helper link on where it can be found.
2025-05-20 17:52:39 -07:00
Chris Roberts
497e2daeca
Make box add failure messages more helpful
This adjusts the failure detection and errors raised when a box
cannot be added. New errors are added for when a requested provider
on a box does not support an architecture, and for when the no
providers on a box support an architecture. When box supports
an architecture but not with the requested provider, a list of
supported providers will be returned in the error message. If
a version constraint is requested and cannot be satisfied due
to provider and architecture filtering, the list of valid versions
will be provided.

Small change to the version list in the error output: the list
has been reversed so the most recent versions are listed first.
2025-04-30 17:50:27 -07:00
Chris Roberts
f4d9f75878
Fix arch guest networking setup
Updates network configuration capability in Arch Linux guest to
properly handle NetworkManager. Extracts NetworkManager setup
into reusable module.
2025-04-08 08:56:26 -07:00
Chris Roberts
ea25996b21
Update Vagrant behavior outside of installers
Remove customized require behaviors and modify the bin executable
to check for missing tools that Vagrant expects to exist when
running outside of an installer.
2025-04-02 11:40:17 -07:00
Chris Roberts
64d1603fd5
Fix alpine networking for public network
Updates the alpine guest network configuration for public network
entry with `use_dhcp_assigned_default_route` to use the `udhcpc`
command instead of the `dhclient` command which is not included.
2025-03-28 09:50:57 -07:00
Chris Roberts
4f79fe59c6
Provide configurable retries for connect on SSH communicator
Adds two new options to the SSH connect configuration: `connect_retries`
and `connect_retry_delay`. Provides user configurable values used when
establishing the SSH connection. Previous behavior would retry generally
by the default value without a pause between attempts. Updated behavior
will retry the number of times set within the config (unless value is
provided directly to connect call) and each retry will pause based on
the delay value set in the config (unless value is provided directly
to the connect call).
2025-03-20 17:44:47 -07:00
Chris Roberts
75726b112a
Update RHEL guest networking
Recent versions of RHEL based guests have updated network configuration.
Detect the correct location of the network configuration files, and
configure the guest based on the detected location.

Fixes #13616
2025-03-19 17:42:11 -07:00
Chris Roberts
704c607e07
Update license files to static version and date 2025-03-17 15:00:07 -07:00
Chris Roberts
e3a8d7f2cf
Remove vagrant-go implementation 2025-03-17 14:14:42 -07:00
Chris Roberts
aa40b21be4
Merge pull request #13379 from genericmoniker/patch-1
Fix typo in en.yml
2024-07-10 15:20:13 -07:00
Chris Roberts
89f69e9697
Merge pull request #13383 from ALameLlama/feature/nicer-nfs-mount-message
NFS Folder Mounting message
2024-07-10 15:11:37 -07:00
Nicholas Ciechanowski
81b0ec176d feat: update to use src => dest 2024-05-01 12:34:45 +10:00
Nicholas Ciechanowski
b26482d23c feat: nicer message when mounting nfs folders 2024-04-22 16:20:03 +10:00
Eric Smith
1dff632e5f
Fix typo in en.yml
"You have requested to enabled..." to "You have requested to enable..."
2024-04-05 17:27:33 -06:00
Fabrice Meyer
1a576716b9 adding ipv6 condition to network_ip_ends_in_one
Signed-off-by: Fabrice Meyer <meyer.fabrice@gmx.fr>
2024-03-09 23:59:29 +01:00
Chris Roberts
96f2039bcd Use ssh key type defined by configuration
If key type is defined as :auto, detect best key type to use. If no
acceptable key type is detected as supported by the server, raise an
error. If unable to determine supported key types from the server,
fallback to original behavior of rsa type key.

If key type is defined as custom value, use that type if the server
supports it, or if the supported types cannot be read. Otherwise, raise
an error informing the user that the key type is not supported.
2024-01-10 11:52:46 -08:00
Chris Roberts
443ff01ab7 Add key_type configuration option for ssh
Adds a new `key_type` option to the Vagrantfile ssh configuration. It
defaults to :auto which allows auto detection of key type to use.
Otherwise it can be set to an explicit type supported by Vagrant.
2024-01-10 11:37:50 -08:00
Florian LOPES
dc37aaae0c
fix(typo): Fix minor typo in Vagrantfile.erb template 2024-01-04 18:22:01 +01:00
Chris Roberts
db83dbf264 Fix version value and update all templates 2023-12-04 08:38:10 -08:00
Chris Roberts
4359dc22fa Update license content in templates 2023-11-13 11:15:39 -08:00
Chris Roberts
7e5777b67f Update quotation marks 2023-10-13 13:18:05 -07:00
Chris Roberts
57a0ccd8d0 Add workflow to initiate releases
This workflow will update files in the repository for a new release. It
will:

* Update version in version.txt, CHANGELOG.md, and LICENSE
* Commit changes to main
* Create new release tag
* Generate a new development version string (patch incremented + .dev)
* Update dev version in version.txt, CHANGELOG.md, and LICENSE
* Commit changes to main
* Push changes on main to origin
* Push release tag to origin

This ensures all files are updated consistently and correctly. The
creation of the tag will then trigger the release workflow.
2023-10-09 14:48:57 -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
hashicorp-copywrite[bot]
36a312ee26
add missing license headers and update copyright file headers to BUS-1.1 2023-08-10 21:53:25 +01:00
Chris Roberts
3422582d68 Clarify missing library error
When an extension fails to build due to missing libraries on the local
system, call out that it is the development files that are misssing and
when installing the library via a package manager it will likely require
the library's development package.
2023-06-12 16:45:42 -07:00
Chris Roberts
0a20379b1a Enable deprecated key type and host key algorithm
Recent versions of OpenSSH remove support of ssh-rsa key types and host
key algorithms from the default conection configuration. Set options to
enable them and provide a configuration option which can disable them if
required.
2023-05-22 17:09:47 -07:00
Allison Larson
2fa539e499 Salt: Download & verify shasum of default bootstrap-salt file 2023-05-19 16:09:46 -07:00
Sophia Castellarin
72dab76707
Merge pull request #13057 from soapy1/box-race-condition
Add a file mutex when downloading box files.
2023-02-22 15:02:13 -08:00
Ryan Gerstenkorn
fa24dc8237 Add example config to disable default share
When you use the default share the guest has access to the Vagrantfile on the host. Disabling the default share and using sharing another subfolder is an easy way to work around this.
2023-02-15 13:58:47 -08:00
sophia
b91a5d5576 Add file mutex util module 2023-01-13 12:00:46 -08:00
sophia
817fbdd2d1 Add information about lock file path 2023-01-12 16:34:45 -08:00
sophia
bc03f21758 Add a file mutex when downloading box files.
Box's are global to Vagrant. Multiple Vagrant process can all
access the box directory for both downloading and extracting boxes.
A file mutex will ensure that mulitple Vagrant process will not
trample eachother if they are trying to download the same box.
2023-01-12 15:30:06 -08:00
Chris Roberts
cbddfbd028 Handle missing machine folder value
If the value of the machine folder can not be found in the
system properties, report a user friendly error message and
include relevant information in the logs for debugging.
2022-11-14 10:45:10 -08:00
Chris Roberts
e7e1badbdc Add support for VirtualBox 7.0 2022-10-14 15:58:00 -07:00
Chris Roberts
7d7ad89ac5 Provide helpful error message on invalid version
When a box version (or constraint) is provided with an invalid
format, rescue the error and return a customized error with
information for the user explaining the problem.
2022-09-21 11:21:24 -07:00
sophia
ccc232914d Raise error if required metadata.json box fields are not present 2022-09-14 13:01:31 -04:00
sophia
d708bab84a Add error message for errors originating from a remote 2022-05-13 17:14:50 -05:00
Chris Roberts
1cff8c7495 Pass values to exception and define exception message content 2021-11-02 16:42:11 -07:00
Chris Roberts
ae7639ec23 Validate VirtualBox hostonly network range
VirtualBox introduced a restriction on the valid range for hostonly
    networks. When using a version of VirtualBox which includes this
    restriction a check is performed on the defined IP address to validate
    it is within either the default range (as defined in the VirtualBox
    documentation) or the values defined in the network configuration
    file.
2021-10-28 17:12:15 -07:00
Chris Roberts
32757d56e1
Merge pull request #12304 from grahamhub/issue-12191
implement --info flag for package cmd #12191
2021-06-29 13:07:47 -07:00
Frederic Hemberger
1dadd72c62 Fix links to Ansible inventory user guide 2021-05-01 11:34:07 +02:00
grahamhub
bfa73b06c6 cli: implement --info flag for package #12191 2021-04-15 00:28:41 -05:00
Ikko Ashimine
b5965a30ea
Fix typo in en.yml
extention -> extension
2021-03-31 20:06:14 +09: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
2d019cb608 Provide specialized messages on plugin install failure if possible
Inspect the error message received when failing to install a
    plugin. If it's something we can determine the cause, send
    back a cleaner error message to the user on how to resolve.
2021-03-08 15:57:13 -08: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