Commit graph

4531 commits

Author SHA1 Message Date
Chris Roberts
3d05ff7ce0
Set client into remote manager on enable and remove on disable 2022-04-25 12:26:35 -05:00
Chris Roberts
070292fb3b
Add class level storage for remote manager client 2022-04-25 12:26:35 -05:00
Paul Hinze
e9426b7a89
Switch to constant stub and add explanatory comment 2022-04-25 12:26:34 -05:00
Paul Hinze
952ba920bc
Return a static priority w/ synced folders in remote manager
Callers expect the manager to return both the class and an integer
priority... so we get a bare minimum working by returning something
reasonable.
2022-04-25 12:26:34 -05:00
sophia
b6de8c3a80
Add guest detect function to client 2022-04-25 12:26:34 -05:00
sophia
56edbfa3b8
Add guest remote plugin module 2022-04-25 12:26:33 -05:00
sophia
87f8c9cc5e
Implement synced folder prepare endpoint 2022-04-25 12:26:33 -05:00
sophia
3ae69c706a
go generate 2022-04-25 12:26:33 -05:00
sophia
231c99b133
go generate . 2022-04-25 12:26:33 -05:00
sophia
1f632d076c
go generate after rebase 2022-04-25 12:26:33 -05:00
sophia
1cda8322af
go generate 2022-04-25 12:26:33 -05:00
sophia
153d218d68
Set plugin name 2022-04-25 12:26:32 -05:00
sophia
1217189616
go generate 2022-04-25 12:26:32 -05:00
sophia
e95d906f74
Get plugin name from client 2022-04-25 12:26:32 -05:00
sophia
764f5c96c5
go generate 2022-04-25 12:26:32 -05:00
Chris Roberts
fc8b01f0ac
Generated proto updates 2022-04-25 12:26:32 -05:00
Chris Roberts
1c3afc0fc9
Generated proto update 2022-04-25 12:26:32 -05:00
Chris Roberts
8867dfc33c
Accept options hash for action methods 2022-04-25 12:26:31 -05:00
Chris Roberts
2acd0fa3b8
Generated proto updates 2022-04-25 12:26:30 -05:00
sophia
bf8b7f6508
go generate 2022-04-25 12:26:27 -05:00
sophia
81a9d7b241
Pass machine to provider functions 2022-04-25 12:26:24 -05:00
sophia
fcf405bdf8
Run provider actions 2022-04-25 12:26:24 -05:00
sophia
8355209654
Accept machine for provider state endpoint 2022-04-25 12:26:24 -05:00
sophia
1e428a0812
Add mappers for provider 2022-04-25 12:26:24 -05:00
sophia
526b7f2318
Remote init from provider grpc api 2022-04-25 12:26:23 -05:00
sophia
809e4044a0
Add provider remote plugin module 2022-04-25 12:26:23 -05:00
sophia
5fda271283
go generate . 2022-04-25 12:26:23 -05:00
sophia
12de22a7db
Get machine state 2022-04-25 12:26:23 -05:00
sophia
371377ebfc
Use provider to get current state for now 2022-04-25 12:26:23 -05:00
sophia
2469016be1
Use remote machine/environment 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
45e64b9890
Add localized message proto 2022-04-25 12:26:20 -05:00
Chris Roberts
914530d26a
Use trace log level for noisy log messages 2022-04-25 12:26:19 -05:00
Chris Roberts
4bcef5de84
Update initial logger configuration to properly apply 2022-04-25 12:26:19 -05:00
Chris Roberts
ec68f6d910
Allow trace to accept args when adding on undefine 2022-04-25 12:26:19 -05:00
Chris Roberts
1b8686d471
Use configurator for level configuration 2022-04-25 12:26:19 -05:00
Chris Roberts
fb1dc2cc59
Load log4r patches at startup 2022-04-25 12:26:19 -05:00
Chris Roberts
d746df4883
Patch Log4r to allow trace logging level 2022-04-25 12:26:19 -05:00
Chris Roberts
8c9b72d56e
Base log message splitting on overall size 2022-04-25 12:26:16 -05:00
Chris Roberts
d8e959c89f
Connect synced folder to client in _initialize method 2022-04-25 12:26:16 -05:00
Chris Roberts
d67aaff74a
Set the client using keyword for synced folder 2022-04-25 12:26:16 -05:00
Chris Roberts
72b8547cce
Generated proto updates 2022-04-25 12:26:15 -05:00
Chris Roberts
031890fcc7
Allow plugin manager to be swapped out for remote manager 2022-04-25 12:26:15 -05:00
Chris Roberts
23d0d9debb
Provide client using keyword argument for synced folder 2022-04-25 12:26:14 -05:00
Chris Roberts
fb2319f1e2
Implement remote plugin manager backed by vagrant go 2022-04-25 12:26:14 -05:00
sophia
1db38e65f8
Setup remote plugin manager when in server mode 2022-04-25 12:26:14 -05:00
sophia
94a203efc9
Inject dummy client into remote synced folders 2022-04-25 12:26:14 -05:00
sophia
05bbd9ec50
Use v2 manager to seed ruby plugins for remote manager 2022-04-25 12:26:13 -05:00
sophia
78fbd12da9
Use remote plugin manager when in server mode 2022-04-25 12:26:13 -05:00
sophia
d5007d4d85
Use remote plugin module when in server mode 2022-04-25 12:26:13 -05:00
sophia
e951c4d971
Add remote plugin manager 2022-04-25 12:26:13 -05:00
sophia
90033b9b68
Only prepend remote mixin synced folders when running in remote mode 2022-04-25 12:26:13 -05:00
sophia
7a75ed6cbb
Get stdout and stderr from privledged execute 2022-04-25 12:26:13 -05:00
sophia
8e85561f61
Get stdout and stderr from command 2022-04-25 12:26:12 -05:00
sophia
c63e7936b2
go generate 2022-04-25 12:26:12 -05:00
sophia
175f05657c
go generate 2022-04-25 12:26:10 -05:00
sophia
9722443d09
Don't check if guest is able to connect
The go side should be doing the checks for ensuring the guest is reachable
2022-04-25 12:26:10 -05:00
sophia
84af97f0a9
Add placeholder remote guest name 2022-04-25 12:26:10 -05:00
sophia
b29b37af0d
Add mappers for time duration proto 2022-04-25 12:26:09 -05:00
sophia
ab395ad730
Move remote communicator to remote plugin module 2022-04-25 12:26:09 -05:00
sophia
514b4e3d89
go generate 2022-04-25 12:26:09 -05:00
sophia
49ad851606
Use named paths proto message for uploading/downloading 2022-04-25 12:26:09 -05:00
sophia
8513a14f9e
Use RemotePath proto message to upload/download files 2022-04-25 12:26:08 -05:00
sophia
1f2084cd17
Add communincator path proto 2022-04-25 12:26:08 -05:00
sophia
4bc2a51748
Pass communincator command 2022-04-25 12:26:08 -05:00
sophia
2e693b60fe
Load remote communincator 2022-04-25 12:26:07 -05:00
sophia
10b4015455
Setup remote communincator 2022-04-25 12:26:07 -05:00
sophia
dc9fe12644
Disable checking for synced folder client 2022-04-25 12:26:07 -05:00
sophia
2bd9c995e9
Don't include folder if it is disabled 2022-04-25 12:26:07 -05:00
sophia
083fe5ea82
Setup remote mixin synced folder module 2022-04-25 12:26:07 -05:00
sophia
9c9c93a0c6
Set folder guestpath and hostpath 2022-04-25 12:26:06 -05:00
sophia
e71e887331
Move remote synced folder module into remote plugin module 2022-04-25 12:26:06 -05:00
Chris Roberts
ac8978eee3
Generated proto updates 2022-04-25 12:26:05 -05:00
sophia
c44046998e
go generate 2022-04-25 12:26:04 -05:00
sophia
d6ecc23a9f
Create synced folder hash 2022-04-25 12:26:04 -05:00
sophia
fa1377528f
go generate 2022-04-25 12:26:04 -05:00
sophia
45cfcc4c34
Return empty response if capability returns an empty response 2022-04-25 12:26:04 -05:00
sophia
46aa1b3e4e
Add synced folder service to list of services 2022-04-25 12:26:04 -05:00
sophia
847d87a017
Get synced folder from machine 2022-04-25 12:26:04 -05:00
sophia
183ceb85eb
go generate 2022-04-25 12:26:03 -05:00
sophia
b58b77ef0b
Add capability methods for remote server 2022-04-25 12:26:03 -05:00
sophia
8bce3e6bd7
Enable remote mode for synced folders 2022-04-25 12:26:03 -05:00
sophia
9002131281
go generate 2022-04-25 12:26:03 -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
9f3241a5b5
Generated updates 2022-04-25 12:26:01 -05:00
Chris Roberts
3fc453cde6
Adjust log silencing for ruby mapper output 2022-04-25 12:26:00 -05:00
Chris Roberts
687189f7b2
Provider name must return as Symbol 2022-04-25 12:25:59 -05:00
Chris Roberts
0c1ff17c43
Only allow mappers logging output if explicitly requested 2022-04-25 12:25:59 -05:00
Chris Roberts
a85c7cc097
Temp logger fix to prevent encoding based errors 2022-04-25 12:25:59 -05:00
Chris Roberts
84b9b1650a
Add client access to ui 2022-04-25 12:25:57 -05:00
sophia
7aaeaf2e46
Update protos 2022-04-25 12:25:57 -05:00
sophia
c5de0d88f7
Add box from ruby 2022-04-25 12:25:56 -05:00
sophia
69b15f7140
Return list of box info when requesting all boxes 2022-04-25 12:25:56 -05:00
sophia
9e04d926bf
go generate 2022-04-25 12:25:56 -05:00
sophia
f71aa68a69
Get box collection from vagrant-go 2022-04-25 12:25:56 -05:00
sophia
8ead293836
Enable box collection for server mode 2022-04-25 12:25:56 -05:00
sophia
e7a8c7120e
go generate 2022-04-25 12:25:56 -05:00
sophia
9d01b2c60e
Add endpoint for finding boxes 2022-04-25 12:25:54 -05:00
sophia
80f3549716
Initialize remote box with client 2022-04-25 12:25:54 -05:00
sophia
085e30053e
Load box from machine 2022-04-25 12:25:53 -05:00
sophia
d0f7d89104
Enable box in server mode 2022-04-25 12:25:53 -05:00
sophia
62d7324bfc
go generate 2022-04-25 12:25:52 -05:00
sophia
93e94186ba
Add box endpoints 2022-04-25 12:25:52 -05:00
sophia
d7737effbf
Add id to box 2022-04-25 12:25:52 -05:00
sophia
1c27a57213
Use Box as part of machine proto 2022-04-25 12:25:51 -05:00
sophia
ed76183470
Add Box proto message 2022-04-25 12:25:51 -05:00
sophia
0a878721f5
go generate 2022-04-25 12:25:49 -05:00
sophia
4251b2ff7c
Get first level parent from ruby plugins 2022-04-25 12:24:48 -05:00
sophia
92d7c7b291
go generate 2022-04-25 12:24:48 -05:00
sophia
09a836745a
Don't search for parent plugins that don't exist in the Ruby run time 2022-04-25 12:24:48 -05:00
Chris Roberts
8d5e5b1276
Fix loggers to prevent multiple output
Only the parent logger directly under the root/global logger
    needs to have the outputter set. When set on child loggers
    output will be sent to all outputters defined on child + all
    parents. This provides just a single output behavior.
2022-04-25 12:24:47 -05:00
Chris Roberts
61c3134928
Do not provide environment to capability call 2022-04-25 12:24:46 -05:00
Chris Roberts
c92e283e7a
Update logger outputter when setting within repository
Since all loggers get registered into the internal repository
    when created, intercept the logger and force the outputter
    to stderr so it is properly applied to all logger instances
    that may be created.
2022-04-25 12:24:46 -05:00
Chris Roberts
f976d7a19c
Fix logger configuration to apply to all 2022-04-25 12:24:46 -05:00
Chris Roberts
819a4d28a4
Reconfigure legacy vagrant to utilize hclog 2022-04-25 12:24:46 -05:00
Chris Roberts
be4bbe902f
Generated proto updates 2022-04-25 12:24:46 -05:00
sophia
14d17dfd9d
Return capability execution result 2022-04-25 12:24:41 -05:00
sophia
b2cce38f48
Add rpc endpoint to prune out old jobs 2022-04-25 12:24:40 -05:00
sophia
bb336592ea
Remove 'found' from basis/project/target query results 2022-04-25 12:24:39 -05:00
sophia
54c0b0528d
Add remote host module 2022-04-25 12:24:39 -05:00
sophia
eeb950b987
Support to_proto for ui's 2022-04-25 12:24:39 -05:00
sophia
7477455380
Get parents from guest plugin 2022-04-25 12:24:39 -05:00
sophia
0588584438
Get local_data from project client 2022-04-25 12:24:37 -05:00
sophia
9599024fa5
Don't setup paths for remote environment 2022-04-25 12:24:37 -05:00
sophia
42796be551
Get machine from project for guest service 2022-04-25 12:24:37 -05:00
sophia
f1e2a73bfa
Don't use just a client to instantiate a machine 2022-04-25 12:24:37 -05:00
sophia
7a5d045083
Setup guest client when initializing guest 2022-04-25 12:24:37 -05:00
sophia
8efc8542b7
Rename guest client 'capability method to match the client interface 2022-04-25 12:24:37 -05:00
sophia
5d46b93a99
Each component client stores their proto 2022-04-25 12:24:37 -05:00
sophia
83a080521e
Add to_proto to machine in order to pass machine protos around to other plugins 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
3067fe7dba
Add remote guest 2022-04-25 12:24:36 -05:00
sophia
d196b8635c
Detect Ruby guest plugin 2022-04-25 12:24:36 -05:00
sophia
b8468644f3
Load vagrantfile given by remote project 2022-04-25 12:24:36 -05:00
sophia
ca3d76ca7d
Use project client to populate environment options 2022-04-25 12:24:36 -05:00
sophia
5ca687cad4
Implement project home path, cwd and default private key 2022-04-25 12:24:36 -05:00
Chris Roberts
c1bbc7284b
Generated proto updates 2022-04-25 12:24:35 -05:00
Chris Roberts
f618d991f8
Update RemoteUI name to Remote 2022-04-25 12:24:35 -05:00
Chris Roberts
e090fa4e10
Move UI to remote file and include options to client 2022-04-25 12:24:34 -05:00
Chris Roberts
df53588de5
Store machine client within index entry for use in generating environment 2022-04-25 12:24:34 -05:00
Chris Roberts
99aef42342
Check for server mode before setting constant 2022-04-25 12:24:34 -05:00
Chris Roberts
927fd5e52f
Remove proto requires
They will only be needed when running in server mode, and when
in server mode, they will be loaded at startup
2022-04-25 12:24:34 -05:00
Chris Roberts
b609a44452
Fix method name called on machine client 2022-04-25 12:24:34 -05:00
Chris Roberts
fb629ae4a2
Fix name and use provider_name from client 2022-04-25 12:24:33 -05:00
Chris Roberts
1ae6ca0522
Generated protobuf updates 2022-04-25 12:24:33 -05:00
Chris Roberts
7a1aba1cb9
Use has with indifferent access when loading entry 2022-04-25 12:24:32 -05:00
Chris Roberts
e5184c5719
Call id on client instead of get_id 2022-04-25 12:24:32 -05:00
Chris Roberts
34ecea07bc
Fix method calls when building entry and setting ID 2022-04-25 12:24:32 -05:00
Chris Roberts
9fb979d44c
Extend module on entry not index 2022-04-25 12:24:32 -05:00
Chris Roberts
aaf0ae8504
Generated proto updates 2022-04-25 12:24:31 -05:00
Chris Roberts
8f4bb571a5
Update remote function name and setup 2022-04-25 12:24:30 -05:00
Chris Roberts
b243868ce9
Add remote module for machine index entry 2022-04-25 12:24:30 -05:00
sophia
10a1f1011b
Get datadir for machine and project 2022-04-25 12:24:29 -05:00
sophia
68aa184bee
Get local data path from project 2022-04-25 12:24:28 -05:00
sophia
f722b15661
Remove references to SDK from remote machine index 2022-04-25 12:24:28 -05:00
sophia
f761af3c55
Move client creation into client module 2022-04-25 12:24:28 -05:00
sophia
c71eb9ea0e
UQuery machine index by uuid 2022-04-25 12:24:28 -05:00
sophia
154a4e56f0
Use uuid as Target Index identifier 2022-04-25 12:24:28 -05:00
sophia
83495a4f8b
Fix each machine index machine yielder 2022-04-25 12:24:27 -05:00
sophia
47a0a2d7d2
Record machine client in machine index entry 2022-04-25 12:24:27 -05:00
sophia
6eea1b0afd
Add endpoint for getting all machines from the index 2022-04-25 12:24:27 -05:00
sophia
c5e6a97892
Cache machines in machine index 2022-04-25 12:24:27 -05:00
sophia
8808ef353e
Clean up logging 2022-04-25 12:24:27 -05:00
sophia
f103797592
go generate . 2022-04-25 12:24:27 -05:00
sophia
01fc2926c9
Save machine index entries remotely 2022-04-25 12:24:27 -05:00
sophia
6f54cf51a2
Allow Machine Index entries to have a remote machine reference 2022-04-25 12:24:27 -05:00
sophia
90968ea430
pPss environment client to machine index eentry environment 2022-04-25 12:24:27 -05:00
sophia
3bda8b24ef
Save point: Get a target successfully from target index 2022-04-25 12:24:26 -05:00
sophia
6dae3576a3
Get project ref 2022-04-25 12:24:26 -05:00
sophia
1ea5b2ba91
Save point: use target ref to retrieve info from target index 2022-04-25 12:24:26 -05:00
sophia
663fbab87a
Fill in remote machine index module 2022-04-25 12:24:26 -05:00
sophia
7de0fe1bd8
Get machine index remote service setup 2022-04-25 12:24:26 -05:00
sophia
c123335456
Save point: connect to machine index service 2022-04-25 12:24:26 -05:00
sophia
a5445b708e
go generate 2022-04-25 12:24:26 -05:00
sophia
040f02e60d
Add proto to delete target 2022-04-25 12:24:25 -05:00
Chris Roberts
378019f014
Generated proto updates 2022-04-25 12:24:25 -05:00
Chris Roberts
fe293dfd1f
Require client to be set and provide stub on initial startup
When running in server mode, make the Environment validate a client
option is provided on instantiation. If no client option is provided,
raise an exception since it is required in server mode.

Since an initial Environment is required during start, include a
stub value for the client so the initial Environment can be instantiated
successfully and the GRPC service can be started.
2022-04-25 12:24:23 -05:00
Chris Roberts
3ca9519f5c
Generated proto updates 2022-04-25 12:24:23 -05:00
Chris Roberts
cad5a7f717
Generated proto update 2022-04-25 12:24:21 -05:00
sophia
0d0ff5c5c6
Define communicator configs as plugin configs 2022-04-25 12:24:21 -05:00
sophia
a128d98dea
Move to_proto to config classes 2022-04-25 12:24:21 -05:00
sophia
5128f604ca
go generate 2022-04-25 12:24:20 -05:00
sophia
0e40c2eb97
to_proto save point 2022-04-25 12:24:20 -05:00
sophia
ada96f13a3
Upload targets found in Vagrantfile 2022-04-25 12:24:20 -05:00
sophia
8d1b9a4a8c
Update regex for dummy config fields 2022-04-25 12:24:20 -05:00
sophia
85271c616e
Collect config defined by community plugins 2022-04-25 12:24:20 -05:00
sophia
f316afdd38
Set project and basis configuration type as vagrantfile 2022-04-25 12:24:19 -05:00
sophia
53c822d76a
Define Vagrantfile DB form 2022-04-25 12:24:19 -05:00
sophia
5bfa4a6f48
Move Vagrantfile proto definition to the plugin sdk 2022-04-25 12:24:19 -05:00
sophia
eeb7028a48
Building after rebase 2022-04-25 12:24:19 -05:00
sophia
5f532fc986
Make box url a repeated field 2022-04-25 12:24:18 -05:00
sophia
c2176d5e80
Extract vagrant and communicator settings from Vagrantfile 2022-04-25 12:24:18 -05:00
sophia
849755646b
Define config for config.ssh, winrm, winssh, vagrant 2022-04-25 12:24:18 -05:00
sophia
da58bbc1c1
Get all config.vm.* variables 2022-04-25 12:24:18 -05:00
sophia
b152cc4f2b
Allow dummy config to eval config blocks to set instance variables 2022-04-25 12:24:18 -05:00
sophia
9c1d09eb8a
Extract providers 2022-04-25 12:24:18 -05:00
sophia
81368d83dd
More complicated provider setup 2022-04-25 12:24:18 -05:00
sophia
5467b9134c
Extract network info from Vagrantfile into proto 2022-04-25 12:24:18 -05:00
sophia
36a4a03160
Define the 'config.vm.*' level of the Vagrantfile 2022-04-25 12:24:17 -05:00
sophia
0923f1edf2
Collect config for Vagrantfile config element that does not exist in Ruby 2022-04-25 12:24:17 -05:00
sophia
6899a2a00d
Make Vagrantfile protos more closely resemble the Vagrantfile 2022-04-25 12:24:17 -05:00
sophia
3b6766cfc1
Add Vagrantfile to task definition 2022-04-25 12:24:16 -05:00
sophia
3d25e71970
Add Vagrantfile to proto data model 2022-04-25 12:24:16 -05:00
sophia
71f3b99819
Setup Vagrantfile refs 2022-04-25 12:24:16 -05:00
Chris Roberts
1a7f3d1f96
Generated proto updates 2022-04-25 12:24:13 -05:00
Chris Roberts
8771e6078f
Add parents method to host plugin 2022-04-25 12:24:12 -05:00
Chris Roberts
ca20181019
Proto updates 2022-04-25 12:24:11 -05:00
Chris Roberts
8f222b36de
Generated proto updates 2022-04-25 12:24:10 -05:00
sophia
6805d81301
Update protos 2022-04-25 12:24:10 -05:00
sophia
3c52682226
Host mapper to connect to already running host process 2022-04-25 12:24:09 -05:00
sophia
e86dc5958a
Clean up debugging cruft 2022-04-25 12:24:09 -05:00
sophia
fc8fe0a106
Make status work 2022-04-25 12:24:09 -05:00
sophia
340c2d7b19
Save point: load target from project 2022-04-25 12:24:09 -05:00
Chris Roberts
37d42bc8ef
Update generated proto files 2022-04-25 12:24:09 -05:00
Chris Roberts
a6b3b2969b
Register environment callback for server mode 2022-04-25 12:24:08 -05:00
Chris Roberts
6994f5d5a7
Start adding updates for remote environment in ruby runtime 2022-04-25 12:24:08 -05:00
sophia
f670b7ca5b
Output special character "%"
printf the special character for "things" is % + STUFF, so if you want just a % you have to use the special character % and then combine it with % to get a single %
2022-04-25 12:24:04 -05:00
sophia
1c63921a6c
Clean up ui output to remote extra spaces
Previously the clear line function would insert extra lines making
output look like

"""
==> default: Importing base box 'hashicorp/bionic64'...

Progress: 10%!(NOVERB)

Progress: 20%!(NOVERB)

Progress: 30%!(NOVERB)

Progress: 40%!(NOVERB)
"""

now, output for progress looks like

"""
==> default: Importing base box 'hashicorp/bionic64'...
Progress: 10%!(NOVERB)
Progress: 20%!(NOVERB)
Progress: 30%!(NOVERB)
Progress: 40%!(NOVERB)
"""
2022-04-25 12:24:04 -05:00
sophia
552a43744e
Enable getting user input for ruby plugins 2022-04-25 12:24:04 -05:00
sophia
de649b2154
Update protos 2022-04-25 12:24:03 -05:00
sophia
36fa931bed
AUpdate ruby protos for sdk chagnes 2022-04-25 12:24:02 -05:00
sophia
9f51d87038
Update ruby execute func for new proto 2022-04-25 12:24:02 -05:00
sophia
3107da72af
Execute subcommands 2022-04-25 12:24:02 -05:00
sophia
475c5b41d8
Allow commands to have subcommands specified as a list of command components 2022-04-25 12:24:01 -05:00
sophia
7fb193f4a2
Add dummy endpoint for subcommands 2022-04-25 12:24:01 -05:00
sophia
3c491fafdd
Register subcommands with subcommands passed as part of command info 2022-04-25 12:24:01 -05:00
sophia
261fa5bbae
Fixes for command info message 2022-04-25 12:24:00 -05:00
sophia
1f432350ea
Add dummy endpoint for subcommands 2022-04-25 12:24:00 -05:00
Chris Roberts
ab59e254ac
Revert addition of readers as they are no longer required 2022-04-25 12:24:00 -05:00
Chris Roberts
a39eebd882
Include prepended method for adding reader 2022-04-25 12:23:59 -05:00
Chris Roberts
a103f6fb17
Restore the machine class and update thin class to remote module 2022-04-25 12:23:59 -05:00
Chris Roberts
3512028ca4
Define callbacks which should be run when enabling server mode 2022-04-25 12:23:59 -05:00
Chris Roberts
d501d77005
Add accessors to get to cli components 2022-04-25 12:23:59 -05:00
Chris Roberts
b601872287
Update protos 2022-04-25 12:23:59 -05:00
sophia
c1ce1016c7
Render ruby protobufs to ruby lib 2022-04-25 12:23:57 -05:00
sophia
bb6174d305
Log output to file 2022-04-25 12:23:57 -05:00
sophia
b54d425038
Update Ruby protos for updates to sdk + pick up environment service 2022-04-25 12:23:57 -05:00
Chris Roberts
cbc2ecac0a
Generated proto updates 2022-04-25 12:23:56 -05:00
Chris Roberts
70a2c977d9
Stub in just enough in the thin machine to get things working 2022-04-25 12:23:56 -05:00
Chris Roberts
fc129977af
Add very basic thin machine implementation against client 2022-04-25 12:23:56 -05:00
Chris Roberts
1a6aeb5811
Update proto file locations 2022-04-25 12:23:56 -05:00
Chris Roberts
a37d1b70a5
Remove client autoload since it does not exist here 2022-04-25 12:23:56 -05:00
Chris Roberts
b7616bdd5d
Add generated proto files for the vagrant service 2022-04-25 12:23:55 -05:00
Chris Roberts
c09fc7be1e
Whitespace cleanup 2022-04-25 12:23:55 -05:00
Chris Roberts
c887a18437
Allow UI instance to be provided to environment and used properly 2022-04-25 12:23:55 -05:00
Chris Roberts
7b70925f47
Provide thick and thin implementations of machine 2022-04-25 12:23:55 -05:00
Chris Roberts
03ac9cd015
Provide machine implementation based on server mode 2022-04-25 12:23:55 -05:00
Chris Roberts
4701cb336e
Add helpers to flag when running in server mode 2022-04-25 12:23:55 -05:00
Chris Roberts
7350b85902
Implement enough of the command service to get things working.
Also updates the UI setup so that we can properly get the
    output streaming back to us.
2022-04-25 12:23:55 -05:00
sophia
854a2a4022
Just get the flag names 2022-04-25 12:23:55 -05:00
Chris Roberts
02b08ac12c
Remove option parser modifications for storing flags 2022-04-25 12:23:54 -05:00
sophia
1109d89616
Collect flag information 2022-04-25 12:23:54 -05:00
sophia
43e4e968ef
Make help message work 2022-04-25 12:23:54 -05:00
sophia
cadcbe82f7
Hard code less 2022-04-25 12:23:54 -05:00
sophia
5fc0b22efd
Make machine initialization work 2022-04-25 12:23:54 -05:00
sophia
e3d8418081
Machine getters to use machine client 2022-04-25 12:23:54 -05:00
sophia
46f5fa5ab8
Machine client implementation 2022-04-25 12:23:54 -05:00
sophia
078a091709
Start replacing machine variables with calls to core service 2022-04-25 12:23:54 -05:00
sophia
4c26f5b384
Make machine with ui 2022-04-25 12:23:54 -05:00
sophia
fd74318bf5
Pass ui to machine 2022-04-25 12:23:54 -05:00
sophia
12627a78a3
Make ui class for interacting with terminal ui service 2022-04-25 12:23:53 -05:00
sophia
c99348413a
Make ui class for interacting with terminal ui service 2022-04-25 12:23:53 -05:00
sophia
ea64673e9f
Add terminal client 2022-04-25 12:23:53 -05:00
sophia
3c360722df
Allow communicator to use plugin config 2022-04-25 12:23:53 -05:00
sophia
ad74f18719
Add communicators 2022-04-25 12:23:53 -05:00
sophia
0b1df4593e
Get some more information about Vagrantfile 2022-04-25 12:23:53 -05:00
sophia
eb165d43d1
Add proto defs for Vagrantfile parser service 2022-04-25 12:23:53 -05:00
Chris Roberts
721648bc4f
Update generated proto files 2022-04-25 12:23:52 -05:00
Chris Roberts
addf420ca2
Add some helper methods and some adjustments to serve setup 2022-04-25 12:23:52 -05:00
sophia
d7f92f9d87
Some update for sdk changes 2022-04-25 12:23:52 -05:00
sophia
74c17de0e1
update protos from sdk chagnes 2022-04-25 12:23:52 -05:00
sophia
7ff0d11582
Move protos into Vagrant module 2022-04-25 12:23:52 -05:00
sophia
773c4bd910
Return an ActionResp 2022-04-25 12:23:52 -05:00
sophia
41f3af51af
Return a result from an up action 2022-04-25 12:23:51 -05:00
sophia
a25381b03a
Get the associated requested provider 2022-04-25 12:23:51 -05:00
sophia
7a612698a5
Transform a machine arg to an instance of Vagrant::Machine 2022-04-25 12:23:51 -05:00
sophia
a806a47a1a
Decode incoming machine arg 2022-04-25 12:23:51 -05:00
sophia
a11f5a4dbf
Move proto files into more globally accessible spot 2022-04-25 12:23:51 -05:00
sophia
82e3dd55ad
Setup machine client 2022-04-25 12:23:51 -05:00
Chris Roberts
d896d7b296 Algorithm must be set for key exchange to enable it for key exchange 2021-11-09 09:12:25 -08:00
Chris Roberts
6810c7b4bb Add version capability to darwin host plugin 2021-11-02 16:43:26 -07:00
Darragh Bailey
0c6d6d8e9d Improve Gem spec selection when resolving
When computing the solution set, if a gem is already loaded, make sure
to use the specification of the loaded one instead of the first
available as otherwise there is a risk that when multiple matches are
available the specification for the wrong version may be picked.

When this happens an error message will be triggered that looks like

  can't activate json-2.3.0, already activated json-2.5.1

This can occur for distribution packaged vagrants as well as installs
for development purposes where the ruby install may contain a default
gem spec of an older version than is needed.

Fixes: #12521
Fixes: vagrant-libvirt/vagrant-libvirt#1390
2021-11-01 17:31:48 +00:00
Chris Roberts
ae7639ec23 Validate VirtualBox hostonly network range
VirtualBox introduced a restriction on the valid range for hostonly
    networks. When using a version of VirtualBox which includes this
    restriction a check is performed on the defined IP address to validate
    it is within either the default range (as defined in the VirtualBox
    documentation) or the values defined in the network configuration
    file.
2021-10-28 17:12:15 -07:00
Pedro Furtado
a8e00cb01d
Update environment.rb 2021-07-09 21:32:22 -03:00
Chris Roberts
bbd1404c1e
Merge pull request #12437 from chrisroberts/line-buf-shell-util
Line buffer utility and shell provisioner usage
2021-06-29 13:11:19 -07:00
Chris Roberts
32757d56e1
Merge pull request #12304 from grahamhub/issue-12191
implement --info flag for package cmd #12191
2021-06-29 13:07:47 -07:00
Chris Roberts
de8da71c41
Merge pull request #12431 from chrisroberts/ui-tests
Update tests to use real UI instance
2021-06-29 12:47:26 -07:00
Chris Roberts
6cc6b89dcf Include line buffer util in autoloads 2021-06-29 11:04:14 -07:00
Chris Roberts
35de0d724e Remove stringio usage from line buffer util, add max buffer length 2021-06-29 11:04:14 -07:00
sophia
0a1b20bb07 Get powershell path in %WINDIR%/System32 2021-06-29 10:34:57 -05:00
Rui Lopes
ef18b45786 ensure that the shell provisioner only emits complete output lines to the ui
partial lines are buffered until they are complete (have a line ending)

see https://github.com/hashicorp/vagrant/issues/11047
2021-06-25 15:58:24 -07:00
Chris Roberts
3d0d0148e9 Update tests to use real UI instance
Replaces use of UI doubles within tests to use actual UI instance
    to ensure calls are passing parameters correctly.
2021-06-23 14:04:48 -07:00
Chris Roberts
ac958314ae
Merge pull request #12415 from chrisroberts/ssh-rsa-dep-fix
Flag RSA SHA1 deprecation when loading keys
2021-06-22 15:48:20 -07:00
Chris Roberts
e7a6f397da Updates for Ruby 3.0 2021-06-21 15:57:46 -07:00
Chris Roberts
46aca8be5a Flag RSA SHA1 deprecation when loading keys
Set flag on RSA keys of deprecated RSA SHA1 support when loading
    keys based on server version of the transport. This ensures keys
    are properly flagged. Flag name has been updated to provide context
    on usage.

    Version matching on the OpenSSH server version has also been updated
    to handle customized naming in the version string (as seen in the
    Windows port) and to properly handle when no match is found.

    Fixes #12344 #12408 #12381
2021-06-10 21:17:08 -07:00
Chris Roberts
5967a23fa0 Support pwsh executable name for powershell
This updates the powershell detection to look for the `pwsh` executable
    and use it when the powershell executable is not available.
2021-04-28 12:45:48 -07:00
grahamhub
bfa73b06c6 cli: implement --info flag for package #12191 2021-04-15 00:28:41 -05:00