48 Commits

Author SHA1 Message Date
Chris Roberts
4e61783008 Fix autoload for Util::Keypair 2024-01-10 11:32:49 -08: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
sophia
b91a5d5576 Add file mutex util module 2023-01-13 12:00:46 -08:00
Paul Hinze
63cefbb8ed
Fix ssh-config and winrm-config by remote-ifying safe_puts
This also removes the "Running (command)..." output since users will
expect to be able to redirect the ssh-config output to a file without
that noise.

If we really like the "Running" thing we can try and swing around and
get fancy by detecting whether or not we have a terminal or a file as
output and doing conditional stuff, but this seemed like the simplest
way forward for now.
2022-06-24 12:53:57 -05:00
Paul Hinze
a4f426d26e
Modify SSH utils server mode behavior so ssh -c works
Still work left to do on exec and stderr separation but this represents
enough working to let vagrant-spec assertions pass so I think it's worth a
checkpoint!
2022-04-25 12:26:48 -05:00
Chris Roberts
8b7c5efa52
Use custom output to break long log lines. Force encoding. 2022-04-25 12:26:02 -05:00
Chris Roberts
819a4d28a4
Reconfigure legacy vagrant to utilize hclog 2022-04-25 12:24:46 -05:00
Chris Roberts
6cc6b89dcf Include line buffer util in autoloads 2021-06-29 11:04:14 -07:00
Chris Roberts
e7a6f397da Updates for Ruby 3.0 2021-06-21 15:57:46 -07:00
Chris Roberts
fd4da92245 Check file size prior to upload and automatically adjust options
When uploading box file, check if the size is greater than
    5GB. If the size is larger and the direct to storage option
    is enabled, disable the option due to current 5GB restriction
    on direct uploads.
2021-03-23 15:11:32 -07:00
Chris Roberts
d08c68ecf3 Adjust how trigger actions are inserted into the stack
This adjusts how triggers are implemented during a normal run. Any
defined triggers which are applicable are located and injected into
the run stack as the stack is built, including hook type triggers.

Support is included for dynamic hook lookup.

The data type used when defining triggers has also been relaxed to
support symbols, strings, or constants.
2020-03-17 15:07:36 -07:00
Chris Roberts
58f66ac8ce Add full checkpoint integration 2018-01-16 14:16:49 -08:00
Chris Roberts
6f663edad0 Scrub sensitive information prior to message output
This provides a simple wrapper around all output to
scrub any strings that have been registered as sensitive
before being output. Also included is a small change
to the initial debug output to only show vagrant specific
environment variables and not the full user environment.
2017-12-14 15:38:31 -08:00
Chris Roberts
50dd832e63 Include Which within Util autoloads 2017-05-12 15:00:55 -07:00
Chris Roberts
3c44ce9742 Support vbox provider within WSL rootfs. Make Windows access easier.
Enables proper setup of VMs started from within WSL rootfs paths. Updates
setup for Windows access when working within the WSL to auto-detect settings
instead of relying on user defined environment variables.
2017-05-12 13:11:53 -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
e2acb5250a Add command deprecation helper module 2017-02-24 06:22:39 -08:00
Chris Roberts
a055978d74 Scrub credentials from box URLs 2017-01-12 13:24:46 -08:00
Chris Roberts
d490bb4b7a Include autoloader for StringBlockEditor 2016-10-29 17:53:45 -07:00
Seth Vargo
7014aa3bab
Remove custom tempfile class
This is not actually providing any additional utility and also causes
namespace conflicts with people trying to use the real Tempfile class.
2016-05-30 23:21:47 -04:00
Seth Vargo
3a27c29577
Add a new util for generating tempfiles 2016-05-28 23:22:33 -04:00
Seth Vargo
f86189a2fe Add Env.with_clean_env for resetting the Ruby and Rubygems environment 2014-11-10 12:00:23 -05:00
Mitchell Hashimoto
bdb88da743 hosts/bsd: convert to new style 2014-01-07 20:39:24 -08:00
Mitchell Hashimoto
71e23bd27c Remove GlobLoader from util.rb since it doesn't exist anymore 2011-11-13 13:19:16 -08:00
Mitchell Hashimoto
0db2ec9d43 Remove ResourceLogger and PlainLogger 2011-07-10 15:35:45 -07:00
Mitchell Hashimoto
1aed9f0f38 Remove leopard/tiger checking and just retry exec using safe_exec 2011-07-09 16:37:12 -07:00
Mitchell Hashimoto
729d62d1ea Chef solo no longer overwrites share folders when multiple provisioners exist 2011-07-07 21:38:07 -07:00
Mitchell Hashimoto
0fcc1150c5 Revert "Instead of using Kernel#system, use custom piped solution"
This reverts commit 171f4184c0a698c4a6b05767accb6002ffcd18a0.
2010-09-29 23:38:07 -07:00
Mitchell Hashimoto
171f4184c0 Instead of using Kernel#system, use custom piped solution 2010-09-27 18:26:42 -07:00
Mitchell Hashimoto
f8e7431899 Retry SSH connect a few times before admitting defeat. 2010-09-09 00:28:21 -07:00
Mitchell Hashimoto
59e1e43c74 Autoload the util classes. HashWithIndifferentAccess for data store 2010-09-03 09:33:15 -07:00
Mitchell Hashimoto
3da94252b5 Get rid of util.rb. No longer used. 2010-09-01 14:30:31 -07:00
Mitchell Hashimoto
549fad0b91 Move output helpers into the actual util class, gets rid of method missing on environment 2010-07-13 21:35:47 -07:00
Mitchell Hashimoto
cce82305ee When util is included, extend the class as well [closes GH-83] 2010-05-25 13:19:38 -07:00
Mitchell Hashimoto
3cef90cfb9 Remove util.rb and that logger 2010-05-20 20:54:34 -07:00
Mitchell Hashimoto
75b1df2f2f Got rid of parent modules for stringhelper/outputhelper. Removed error/wrap_output from util.rb 2010-05-20 16:15:43 -07:00
Mitchell Hashimoto
699fa2ce77 Call properly t method in error_and_exit 2010-05-02 13:51:25 -07:00
Mitchell Hashimoto
13c05de702 Rename errors.yml to strings.yml and Error to Translator, since I plan on using it for general strings 2010-04-30 23:42:11 -07:00
Mitchell Hashimoto
3c2e1bd80a All errors now go through the errors.yml files 2010-03-17 21:08:26 -07:00
Mitchell Hashimoto
efe98df4b0 Added vagrant box list command to list added boxes 2010-03-07 21:34:53 -08:00
Mitchell Hashimoto
b4e25143dc error_and_exit now uses abort, which prints to stdout before exiting 2010-03-04 21:05:43 -08:00
John Bender
c9d0d0d9d9 packaging and unpackaging 2010-02-15 14:49:47 -08:00
John Bender
9e3a57fc36 package command 2010-02-12 00:14:08 -08:00
Mitchell Hashimoto
f2f92d7ffa Get rid of "VAGRANT_ENV" since that was just a hack. Log output location configurable now. 2010-02-12 00:09:04 -08:00
Mitchell Hashimoto
e5903129e1 Logger now uses singleton on the Vagrant::Logger class. Tests included. 2010-02-10 22:12:34 -08:00
Mitchell Hashimoto
03079d9fa6 Get rid of "VAGRANT_ENV" since that was just a hack. Log output location configurable now. 2010-02-10 13:59:25 -08:00
Mitchell Hashimoto
c1998d2127 And then God said unto thee, "You shall be named Vagrant." 2010-02-09 23:08:23 -08:00