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
3ec8d44cf9
Remove debug setup for restclient logger
2020-11-03 13:31:41 -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
Chris Roberts
cba5bca7de
Use variable when sending info to logger
2020-11-02 10:31:28 -08:00
Chris Roberts
7331623a39
Only allow the ui to be overridden when running action
2020-11-02 10:30:56 -08: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
70d36bc7cd
Update uploader options to include --fail so failures are reported properly
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
sophia
e2f71dd55d
Update mime gem
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
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
6e8be9f9ef
Merge pull request #11863 from soapy1/include-index
...
Include index
2020-09-15 15:47:35 -05:00
sophia
d6a88f666f
Add some docstrings and logging
2020-09-15 15:01:01 -05:00
sophia
5607428a66
Don't try to recover machine without a uuid
2020-09-15 11:16:13 -05:00
Sophia Castellarin
0d79bd9f99
Merge pull request #11893 from dcermak/remove_erubis
...
Switch from unmaintained gem erubis to erubi
2020-09-15 09:59:25 -05:00
sophia
f9b1d52ec6
Catch error for when guest is not available
2020-09-10 16:28:38 -05:00
Dan Čermák
ce8230ccfb
Switch from unmaintained gem erubis to erubi
...
Rails switched to erubi as well, as erubis has not seen any new releases since 2011.
2020-09-10 10:52:47 +02:00
sophia
e619a6a930
Catch nil input for querying machine index
2020-08-28 16:13:43 -05:00
Sophia Castellarin
3835da3839
Merge pull request #11797 from soapy1/synced-folder-caps
...
Synced folder caps for mount options and default fstab modification behaviour
2020-08-21 11:44:15 -05:00
sophia
fffc555faf
Add tests for new hook
2020-08-21 10:54:43 -05:00
sophia
e96d60c029
Add tests for persisting shared folders
2020-08-20 18:24:09 -05:00
sophia
e2f012ff58
Escape value being scrubbed
2020-08-20 18:03:01 -05:00
sophia
943047d003
Add tests for synced folder collections
2020-08-19 17:57:57 -05:00
sophia
bb5d0e9c28
Remove credentials scrubbing from caching synced folders
...
Passwords are (and should) never stored be as part of folder data.
I think there is also a case to be made about desensitizes
information here can lead to leaking of credentials. For example if
an exported folder is named "vagrant" and the users password is
"vagrant", the synced_folder cache will show "****" in place of the
folder name, indicating that it is also password.
2020-08-19 17:43:22 -05:00
sophia
56fa014af8
Don't persist shared folders if mount options capability not provided
2020-08-19 15:47:21 -05:00
Chris Roberts
cd2d84fda7
Adjust synced folder collection class
2020-08-19 15:00:40 -05:00
sophia
7577c11eb6
Persist synced folders in action
2020-08-19 15:00:40 -05:00
sophia
1a3136b9fe
Allow types to be specified when instantiating a typed hash
2020-08-19 15:00:40 -05:00
sophia
bc898e385d
Update tests for synced folder typed hash
2020-08-19 15:00:40 -05:00
sophia
2239ee8582
Create Hash with type attribute
2020-08-19 15:00:40 -05:00
sophia
faad9f2717
Add tests
2020-08-19 15:00:40 -05:00
sophia
cde39e26ba
Make mount options a synced_folder capability
2020-08-19 15:00:40 -05:00
sophia
afd2a28f60
Add synced_folder_capability
2020-08-19 15:00:40 -05:00
sophia
0d1635303f
Sperate hook for authenticating url and adding headers for authentication
2020-08-18 17:42:59 -05:00
sophia
27b37ea838
Scrub credentials as whole words, don't capture matching substrings
2020-08-18 11:38:04 -05:00
sophia
b5f6df9ec0
Download a box by setting auth headers
2020-08-18 10:13:39 -05:00
Chris Roberts
e9ece2ab58
Merge pull request #11814 from chrisroberts/f-dep-warns
...
Updates to address all Ruby deprecations and warnings
2020-08-12 09:07:10 -07:00
Chris Roberts
5003bb6e15
Updates to address all Ruby deprecations and warnings
...
This includes updates for resolving all warnings provided by Ruby
for deprecations and/or removed methods. It also enables support
for Ruby 2.7 in the specification constraint as all 2.7 related
warnings are resolved with this changeset.
2020-08-10 13:05:41 -07:00
Chris Roberts
98ffa4add0
Speed up open port detection
2020-08-07 16:38:15 -07:00
Chris Roberts
05a3e122fb
Only warn when configured host IP is not found on local device
2020-08-07 16:38:15 -07:00
Sophia Castellarin
a2811909be
Merge pull request #11618 from jbonhag/fix/empty-box
...
Treat an empty box value as invalid
2020-08-07 11:18:33 -05:00
Sophia Castellarin
be10e060e6
Merge pull request #11732 from soapy1/detach-from-subprocess
...
Detach from subprocess
2020-08-07 11:11:03 -05:00
Sophia Castellarin
bedd141381
Merge pull request #11721 from jbonhag/f/ssh-nil-exit-status
...
Raise an error on nil exit status
2020-08-07 10:55:58 -05:00
Sophia Castellarin
2d59b4f8dd
Merge pull request #11807 from soapy1/sanatize-mount-command
...
Capture escape character [3J
2020-08-07 10:53:01 -05:00
Sophia Castellarin
c17ba03904
Merge pull request #11773 from soapy1/cloud-init-wait-action
...
Add cloud init wait action
2020-08-06 16:28:45 -05:00
sophia
8a766ca9ab
Capture escape character [3J
2020-08-06 15:50:51 -05:00
sophia
a1d429a4e8
Raise more descriptive error if cloud init fails
2020-08-06 15:47:36 -05:00