grahamhub
bfa73b06c6
cli: implement --info flag for package #12191
2021-04-15 00:28:41 -05:00
sophia
b480790a8d
Add box directly with authed urls
2021-04-05 16:39:01 -05:00
Connor Martin
e92fe5d720
Merge branch 'main' of github.com:hashicorp/vagrant into remove-space
2021-03-11 17:20:57 -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
4b67216d71
Raise error if downloading box metadata fails
2021-02-12 17:07:04 -06:00
Connor Martin
3f70d44266
assign to a new var
2021-02-12 09:31:32 -06:00
sophia
44f527ff8e
Apply download options to metadata requests
2021-02-09 18:33:20 -06:00
Connor Martin
9a26940114
use strip instead
2021-02-04 14:29:54 -06:00
Connor Martin
1022e5b991
remove all space from checksums
2021-02-01 21:54:10 -06:00
Chris Roberts
157db39938
Remove action name tracking for applying
...
The raw action name tracking should be sufficient for preventing
multi-insertions where only a single modification should occur.
With action name, hooks _should_ be able to be applied in multiple
builder stacks as they are expanding.
Fixes #12035
2020-11-11 09:56:03 -08:00
Chris Roberts
30f8e7944d
Track raw actions as they are applied to prevent multiple insertions
...
The raw actions are used for applying the original trigger behavior
which can insert before and/or after the entire set of actions. When
processing the stack items, mark when the raw action has been applied
to prevent it from being applied again. Triggers around the raw actions
should only ever be applied _once_.
Fixes #12034
2020-11-11 09:39:07 -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
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
f9b1d52ec6
Catch error for when guest is not available
2020-09-10 16:28:38 -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
e96d60c029
Add tests for persisting shared folders
2020-08-20 18:24:09 -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
cde39e26ba
Make mount options a 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
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
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
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
a1d429a4e8
Raise more descriptive error if cloud init fails
2020-08-06 15:47:36 -05:00
Jeff Bonhag
3a1705b50a
Make sure we don't run an empty box
2020-07-31 15:29:06 -04:00
Sophia Castellarin
b41db6bebe
Output cloud init messages to user
...
Co-authored-by: Jeff Bonhag <jbonhag@hashicorp.com>
2020-07-31 12:10:43 -05:00
Jeff Bonhag
db57af5bca
Write meta-data as yaml
2020-07-31 11:58:06 -04:00
Jeff Bonhag
c60d1f8565
Set MIME-Version for user data
2020-07-31 11:57:56 -04:00
sophia
0a5a940e58
Raise an error if cloud-init is not found on guest
2020-07-29 12:50:50 -05:00
Sophia Castellarin
3d4b721a22
Merge pull request #11579 from soapy1/provisioner-communicator_required
...
Provisioner communicator required
2020-07-17 10:45:34 -05:00
sophia
e5d7813b0a
Call cap for building iso
2020-07-16 15:40:45 -05:00
sophia
3f867e0df4
Add cloud init wait action
2020-07-16 15:40:39 -05:00
Brian Cain
39c3ee7230
Update code style for map/each methods
2020-06-29 11:16:55 -07:00
Brian Cain
4b15435262
Fix method docs
2020-06-29 11:00:16 -07:00
Brian Cain
3caca048c8
Update setup to decouple disk attachment from user_data setup
2020-06-29 11:00:16 -07:00
Brian Cain
d6fc70dd68
Include volume_id in iso host cap params
2020-06-29 11:00:16 -07:00
Brian Cain
39a12de38f
Ensure meta-data is also included in cloud-init iso
2020-06-29 11:00:16 -07:00
Brian Cain
6797b96cae
Save file as user-data
2020-06-29 11:00:16 -07:00