59 Commits

Author SHA1 Message Date
Chris Roberts
4b61b0be49 Fix state loading for machine 2022-06-21 14:42:14 -07:00
Chris Roberts
8e69548c76 Memoize some values fetched from the machine client 2022-06-20 13:10:38 -07:00
Chris Roberts
0d2627014c Update remote machine to use client for values 2022-06-15 11:06:28 -07:00
sophia
58e8e6ff97 Remove unused machine initialization steps 2022-05-31 10:09:35 -05:00
Paul Hinze
e605132321
Pass along provider to environment.target
Mirrors change in https://github.com/hashicorp/vagrant-plugin-sdk/pull/157
2022-05-25 16:19:50 -05:00
sophia
e020c6600e Hacks to let a remote machine be instantiated with or with out a client 2022-05-04 11:25:54 -05:00
sophia
a40d890f74 Instantiate provider for remote machine 2022-05-04 11:25:18 -05:00
sophia
92a0b1c541 Allow remote machine to be initialized with just a machine client 2022-05-04 11:23:06 -05:00
sophia
2000a53b06 Initialize from client if provided, otherwise from passed in environment 2022-05-04 09:32:36 -05:00
sophia
0a37521ef2 Remove reload machine function from the grpc api 2022-05-04 09:32:36 -05:00
sophia
6dfca17d54 Get machine state from go impl 2022-05-04 09:32:36 -05:00
sophia
b4fbf76a33 Plug machine#uid methods into remote go backend 2022-05-04 09:32:36 -05:00
sophia
5ab49f33bc Refactor remote machine 2022-05-04 09:32:36 -05:00
sophia
f1aec2c1c2
Return machine name as sym 2022-04-25 12:26:46 -05:00
sophia
bc641209e8
Check for box version 2022-04-25 12:26:46 -05:00
Paul Hinze
2906d2c7df
Populate default when synced folder guest type is not set
This helps fix the unit tests that were failing. Also adding a test for
the new behavior
2022-04-25 12:26:44 -05:00
sophia
1441ea74d2
Get sf type from folders 2022-04-25 12:26:43 -05:00
Chris Roberts
0a676fd3f1
Remove local provider class replacement in machine 2022-04-25 12:26:39 -05:00
Paul Hinze
8b6ef27a0f
Fix multiple synced folder handling in server mode
There was a hash assignment that was overriding values when there were
multiple synced folders for a given implementation.

Includes some stub-tastic unit tests to help verify the hash munging
behavior does what it's supposed to do going forward.
2022-04-25 12:26:37 -05:00
Chris Roberts
7cb620da23
Remove method which is no longer used 2022-04-25 12:26:36 -05:00
Chris Roberts
bcff6d6284
Re-enable using local provider from machine 2022-04-25 12:26:35 -05:00
Chris Roberts
a5b3ca9f6d
Return remote plugin instances 2022-04-25 12:26:35 -05:00
Chris Roberts
095a0f8847
WIP checkpoint with callable remote provider action 2022-04-25 12:26:35 -05:00
Chris Roberts
8867dfc33c
Accept options hash for action methods 2022-04-25 12:26:31 -05:00
sophia
fcf405bdf8
Run provider actions 2022-04-25 12:26:24 -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
Chris Roberts
d67aaff74a
Set the client using keyword for synced folder 2022-04-25 12:26:16 -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
2e693b60fe
Load remote communincator 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
9c9c93a0c6
Set folder guestpath and hostpath 2022-04-25 12:26:06 -05:00
sophia
d6ecc23a9f
Create synced folder hash 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
b58b77ef0b
Add capability methods for remote server 2022-04-25 12:26:03 -05:00
Chris Roberts
687189f7b2
Provider name must return as Symbol 2022-04-25 12:25:59 -05:00
sophia
085e30053e
Load box from machine 2022-04-25 12:25:53 -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
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
d196b8635c
Detect Ruby guest plugin 2022-04-25 12:24:36 -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
e5184c5719
Call id on client instead of get_id 2022-04-25 12:24:32 -05:00
Chris Roberts
8f4bb571a5
Update remote function name and setup 2022-04-25 12:24:30 -05:00
sophia
8808ef353e
Clean up logging 2022-04-25 12:24:27 -05:00