Paul Hinze
ff86d86ac8
Provisioner Plugins
2022-04-25 12:26:37 -05:00
Chris Roberts
920fd39ec1
Update builtin command to use CommandParams
2022-04-25 12:26:32 -05:00
sophia
be40120ddc
Remove current provider plugin
2022-04-25 12:26:23 -05:00
Chris Roberts
bd9ba0654e
Update builtins to use component command flag
2022-04-25 12:26:22 -05:00
Paul Hinze
92c345b42d
Allow go push plugins to use config from Vagrantfile
...
* Populate push configs when parsing the vagrantfile
* Allow untyped configs to be shipped over GRPC
* In our demo plugin, walk the vagrantfile and snag the config
Example Vagrantfile that works with the demo plugin:
```ruby
Vagrant.configure("2") do |config|
config.push.define "myplugin" do |push|
push.coolkey = "coolvalue"
push.alist = ["so", "many", "items"]
push.ahash = { "hashkey" => "hashvalue" }
end
end
```
2022-04-25 12:26:21 -05:00
Paul Hinze
a841da4fc6
Add a simple push plugin in Go
...
The only tweak required to get this to work was allowing a DummyConfig
to survive being passed through a remote plugin on the Ruby side.
2022-04-25 12:26:21 -05:00
Paul Hinze
0fef7cc416
Port push plugins
...
This uses the new Push plugin support added to the plugin SDK in https://github.com/hashicorp/vagrant-plugin-sdk/pull/106 to make the following changes:
* The plugin manager on the Go side now registers push plugins
* The the _remote_ plugin manager on the Ruby side now calls over to
the go side to get push plugins
* All the wiring is hooked up such that when a push plugin is replaced
with its remote GRPC-client-wielding equivalent, the messages are
ferried around.
2022-04-25 12:26:21 -05:00
sophia
deb667ecd3
Use common rpc errdetails messages
2022-04-25 12:26:20 -05:00
sophia
bb084e42e4
Apply changes to download funciton
2022-04-25 12:26:09 -05:00
sophia
85f7aa1586
Make go communincator plugin work
2022-04-25 12:26:09 -05:00
sophia
a52b8b7fd3
Update dummy communicator
2022-04-25 12:26:08 -05:00
sophia
8e6dcac43e
Refactor myplugin
...
- add mappers for command options
- move communincator and prots into their own modules
2022-04-25 12:26:07 -05:00
sophia
f1e41a5c88
Add dummy communicator
2022-04-25 12:26:07 -05:00
sophia
f1f1b8c79d
Update parents -> parent
2022-04-25 12:24:48 -05:00
sophia
327db98656
Don't set parents for alwaystruehost plugin
2022-04-25 12:24:48 -05:00
sophia
cda3ba7b29
Make myplugin have parents darwin and bsd
2022-04-25 12:24:48 -05:00
sophia
7e3d2faa07
Add write_hello_file capability
2022-04-25 12:24:48 -05:00
sophia
ee7971ab1c
Go/Ruby host plugin dependency
2022-04-25 12:24:47 -05:00
sophia
a3d4c170f0
Fix guest plugin issues
2022-04-25 12:24:47 -05:00
Chris Roberts
661785771f
Update builtins to implement seed(s) function
2022-04-25 12:24:45 -05:00
Chris Roberts
821a982656
Add subcommand for running host capability
2022-04-25 12:24:43 -05:00
sophia
a23da9bc64
Log ruby detect endpoint
2022-04-25 12:24:41 -05:00
sophia
591dcced22
Remotve machine names function from project
2022-04-25 12:24:37 -05:00
sophia
827b50db77
Get client from machine go impl
2022-04-25 12:24:36 -05:00
sophia
545ddbdc74
Differentiate guest and host plugins
2022-04-25 12:24:35 -05:00
sophia
c19b3683db
Add alwaystrue guest plugin
2022-04-25 12:24:35 -05:00
Chris Roberts
3bbab430bc
Update builtin command to load target from project
2022-04-25 12:24:33 -05:00
Chris Roberts
8d52d9311e
Set custom plugin name for builtins
2022-04-25 12:24:21 -05:00
sophia
21a9827d53
Specialize a target given a type, and return an interface
2022-04-25 12:24:13 -05:00
Chris Roberts
22b8161e2a
Update output for test command
2022-04-25 12:24:12 -05:00
Chris Roberts
131e11a8a8
Add parents function and remove extras
2022-04-25 12:24:12 -05:00
Chris Roberts
260861dbb7
Update command to return int32s
2022-04-25 12:24:11 -05:00
Chris Roberts
90e818f377
Update capability to pass terminal ui instance directly
2022-04-25 12:24:10 -05:00
Chris Roberts
05d5634c83
Host component related work
2022-04-25 12:24:10 -05:00
sophia
908b1e3449
Readd ui as arg to host cap
2022-04-25 12:24:10 -05:00
sophia
9ebd62b37a
Call capability func
2022-04-25 12:24:10 -05:00
sophia
a5b0642577
Make host cap function call work with arguments
2022-04-25 12:24:10 -05:00
sophia
10673990c7
Make capability work (without args)
2022-04-25 12:24:10 -05:00
sophia
e4c0f09925
HasCapability working
2022-04-25 12:24:10 -05:00
sophia
88bcb0378e
Save point - broken
2022-04-25 12:24:09 -05:00
sophia
703458800c
Add command that tests executing host capabilities
2022-04-25 12:24:09 -05:00
Chris Roberts
95fe1723b8
Update plugin to request target plugin and specialize to machine
2022-04-25 12:24:08 -05:00
Chris Roberts
06f3d7fd21
Update to use project specific UI
2022-04-25 12:24:07 -05:00
Chris Roberts
43bd58f3d3
Update builtins for project changes
2022-04-25 12:24:06 -05:00
sophia
aff6edc31b
Add plugin command that uses interactive input
2022-04-25 12:24:04 -05:00
sophia
2dd286ef4f
Add test go command for interactive input
2022-04-25 12:24:04 -05:00
sophia
bc095b06dc
Don't initialize hosts with basis
2022-04-25 12:24:04 -05:00
sophia
dfd604bd1b
Run capabilities
2022-04-25 12:24:04 -05:00
sophia
768dcf07da
Rename to alwaystrue host
2022-04-25 12:24:03 -05:00
sophia
be08dfde85
Save point
2022-04-25 12:24:03 -05:00