-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Provider capabilities #2652
Comments
@tmatilai @mitchellh Any thoughts? |
An example that I was thinking of is that I would possibly want to use the |
Well, I have to abstract out the capabilities system for hosts for 1.5. I think once I abstract that out then this would be possible. I'll think on it. |
Cool, taking a look at the branch it looks like the initial cut was done the same way I was heading for provider capabilities. I mocked up something for adding a capability plugin, etc, which is what I was thinking. :) |
Yeah, @fgrehm started the branch. I think it'll change quite a bit since I've been changing "guest.rb" quite a bit which is where the meat of the capabilities are. |
The "Guest" class should be abstractable to a plane |
Awesome, that sounds like the avenue I was going down as well. My one thought was whether or not to make the capabilities singular, e.g. "The whole system supports snapshotting" or "This provider supports snapshotting" ... "This guest supports snapshotting" etc. |
Yeah, unfortunately what I had in mind for using host capabilities ended up becoming a low priority for me. But to whoever gets to that, please @ ping me as I'll be more than happy to test it :-) @johnbellone in case you are interested, some background on it is available at GH-2005 |
I may try and draft something in a separate branch. — On Fri, Dec 13, 2013 at 6:13 PM, Fabio Rehm notifications@github.com
|
I'll work on this tonight or tomorrow. |
No rush :) |
Here's the work I was able to get done on the train. |
@johnbellone cool :) I know it's on a really early stage but do you mind if I start asking questions around that PR? I'm willing to help out over there but I know how annoying it can be for someone to keep asking stuff while things are on their early days before taking shape :P |
@fgrehm Go for it, that's the reason why I posted it up here :). |
Fixed by #2896 |
Since I am working on #2638 I ran into the need for checking provider capabilities. The relevant example is that VirtualBox and VMWare both are providers that have snapshotting capabilities. Other providers may not have snapshots, or they may not be implemented yet in the driver, and it is necessary for the command actions to be able to not execute this.
I see that this is implemented already for guests and I also see a branch for host capabilities. Does anyone see a need for a generic capability plugin that is executable? Rather than merely plowing through and wiring up
provider_capabilities
I was wondering if the time is worth spending going down this avenue?The checklist that I have for abstracted capabilities:
The text was updated successfully, but these errors were encountered: