Paul Hinze
7c56c74bb6
Support and honor the "primary" option for Command plugins
2022-07-27 11:36:04 -05:00
Chris Roberts
dca389eda0
Generated proto updates
2022-07-25 15:00:49 -07:00
sophia
4f0082adfa
Fix provider options typo
2022-07-18 10:03:01 -07:00
Paul Hinze
313905dde5
Merge pull request #317 from hashicorp/fix-help-subcommand
...
Band-aid to prevent help subcommand from erroring
2022-07-15 16:42:13 -05:00
Paul Hinze
957d0d3779
Bring plugin options back to Ruby for providers and synced folders
...
This removes the need for the validation workaround for Docker, because
box_updated is once again available in that context.
We don't technically need the SyncedFolder priorities back on the Ruby
side, but wiring them through for symmetry.
Depends on https://github.com/hashicorp/vagrant-plugin-sdk/pull/183
2022-07-15 12:14:47 -05:00
Paul Hinze
f3dbc24a22
Band-aid to prevent help subcommand from erroring
...
The code running in the help subcommand relies on Command plugins being
returned from the manager with their options hash. Stubbing in a blank
hash prevents the command from crashing
What we really need is for CommandOptions to be modeled and passed
through from Go to Ruby so :primary subcommands can be displayed, but
that can be a follow-on task from this quick fix.
2022-07-15 11:25:50 -05:00
Chris Roberts
a7d3652920
Generated proto update
2022-07-11 15:10:03 -07:00
Chris Roberts
d2ad38a607
Do not load provider during initialization
2022-07-08 16:38:03 -07:00
Chris Roberts
4dd69a07a3
Generated proto updates for vagrantfile
2022-07-08 16:38:02 -07:00
Chris Roberts
3c88c9ca7d
Support individual value fetching from vagrantfile
2022-07-08 16:38:02 -07:00
Paul Hinze
27d08534cf
Merge pull request #309 from hashicorp/fix-docker-by-supporting-machine-with-no-box
...
Make Docker provider work again post config refactor
2022-07-08 15:07:00 -05:00
sophia
a6caa47f8e
Environment#active_machines should return a list of tuple
...
The tuple should be compsed of the machine name (as a string)
and provider name (as a symbol)
2022-07-08 11:41:18 -05:00
Paul Hinze
ee8883153c
Make Docker provider work again post config refactor
...
- Allow machine.box to be empty without sadness (depends on
https://github.com/hashicorp/vagrant-plugin-sdk/pull/182 )
- Get synced folder type from plugin name instead of defaulting to
:virtualbox
2022-07-08 11:36:27 -05:00
Sophia Castellarin
66a22e5254
Merge pull request #303 from hashicorp/synced_folder_has_override_opts
...
Synced folder has override opts
2022-07-07 16:28:14 -05:00
Chris Roberts
f5d778d51a
Revert "Merge pull request #300 from hashicorp/optimize-ruby-command-list"
...
This reverts commit 1c26a4abb0c9e095b3f6ec9944c4b15f6f1cd064, reversing
changes made to 186824a568583d8f6f2a50501d940ed71608fa0b.
The changes broke plugin loading when using subcommands so these
changes will be reverted until the underlying issue can be
investigated and resolved.
2022-07-07 14:03:56 -07:00
sophia
9043ab4c45
go generate
2022-07-07 12:30:24 -05:00
sophia
e70a25e24f
Use the scoped hash override to get overriden synced folder config
2022-07-07 12:30:24 -05:00
sophia
b17c36c7c7
Fix typo
2022-07-07 12:30:24 -05:00
sophia
e8c0587c85
go generate
2022-07-07 12:30:24 -05:00
Sophia Castellarin
0b53e06687
Merge pull request #297 from hashicorp/port-command-fix
...
Use remote provider
2022-07-07 12:21:48 -05:00
sophia
73801703e7
Pass machine to provider capabilities
2022-07-07 11:49:57 -05:00
Chris Roberts
1c26a4abb0
Merge pull request #300 from hashicorp/optimize-ruby-command-list
...
Optimize command list generation
2022-07-07 09:29:15 -07:00
Paul Hinze
fb2a102c71
Fix init and other commands that run without a project
...
The Basis needs to be able to respond to Vagrantfile() and
DefaultProvider() to make it through Vagrant::Environment
initialization.
Depends on https://github.com/hashicorp/vagrant-plugin-sdk/pull/178
2022-07-01 11:56:08 -05:00
sophia
52d37217ac
Use cache from CommandServe module
2022-06-30 16:57:41 -05:00
sophia
20ec85b021
Use remote provider
2022-06-30 16:57:41 -05:00
Chris Roberts
e1d7962ee8
Generated proto updates for get commands
2022-06-29 16:14:01 -07:00
sophia
adadf26c9c
Check if communicator is available before detecting guests
2022-06-29 17:23:43 -05:00
sophia
e0a30f9ba7
Raise error if communicator is not ready when getting guest from machine
2022-06-29 17:23:43 -05:00
Paul Hinze
430377fdce
Merge pull request #291 from hashicorp/fix-ssh-config
...
Fix ssh-config and winrm-config by remote-ifying safe_puts
2022-06-28 11:50:08 -05:00
Chris Roberts
f1695b6c1f
Generated proto updates for config wrappers
2022-06-24 18:28:10 -07: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
Chris Roberts
4b61b0be49
Fix state loading for machine
2022-06-21 14:42:14 -07:00
Chris Roberts
83467013e9
Handle Set and Logger types
2022-06-20 16:56:30 -07:00
Chris Roberts
e0d8fa6689
Generated proto updates
2022-06-20 13:13:06 -07:00
Chris Roberts
8e69548c76
Memoize some values fetched from the machine client
2022-06-20 13:10:38 -07:00
Chris Roberts
3f557e26f1
Log what wasn't handled by wrapper
2022-06-20 13:06:14 -07:00
Chris Roberts
4d403ef02a
Only raise error if version load is nil
2022-06-15 11:15:08 -07:00
Chris Roberts
2274efa568
Add helper method for performing partial loads
2022-06-15 11:06:33 -07:00
Chris Roberts
2af4ee0859
Always store values even when not registered
2022-06-15 11:06:33 -07:00
Chris Roberts
dfc2a6d6f4
Make dummy config a proper config instance and remove to_proto
2022-06-15 11:06:33 -07:00
Chris Roberts
09e6ff7ba2
Use client to get vagrantfile for environment
2022-06-15 11:06:33 -07:00
Chris Roberts
0d2627014c
Update remote machine to use client for values
2022-06-15 11:06:28 -07:00
Chris Roberts
972ba095e9
Add remote vagrantfile implementation
2022-06-15 11:02:29 -07:00
Chris Roberts
e47da98810
Update unset value constant
2022-06-15 11:02:29 -07:00
Chris Roberts
4128441aac
Remove to_proto from config and update unset value constant
2022-06-15 11:02:29 -07:00
sophia
ec2e2a6e89
go generate
2022-06-08 10:30:46 -05:00
sophia
90825f7086
go generate
2022-06-08 10:30:46 -05:00
Paul Hinze
8b08b3117c
Use plugin options for Synced Folder priorities
...
Now that plugin options are available, we can use them to interpret
synced folder priorities and remove the shim we had in place.
2022-06-06 17:39:09 -05:00
Paul Hinze
8dbe72a5a0
Use Component Options to implement ProviderOptions
...
* Populates ComponentOptions into plugin structs
* Maps options for legacy Provider Plugins into PluginOptions
* Demos use of PluginOptions in a stub provider
* Honors plugin priority and defaultable settings
2022-06-03 16:37:05 -05:00
Sophia Castellarin
fa1f45732b
Merge pull request #276 from hashicorp/machine-readable-flag
...
Machine readable flag
2022-06-03 12:11:15 -05:00