-
Notifications
You must be signed in to change notification settings - Fork 6
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
[PS-Module] Config & Config File handling #6
Comments
I guess we need to keep this fairly simple as well, to not create a barrier to stop people developing thier own plugins. The variable values should also not be written back to the plugin like it is now, as it makes updating more difficult. Once we come up with a solution to the plugins, I'd suggest we effectively merge globalVariables.ps1 into vCheck itself (and possibly handle EndScript.ps1 as well) in a similar manner. |
@Sneddo I completely agree 💯 ; my thoughts are almost right in line with everything you mentioned, trying to keep the following points, below, at the forefront. If you have a minute, check out the layout I put together, based on how I configured the initial module.
|
Hi folks, great to see the behind-the-scenes discussions going on RE: development, I think (hope) that I'm going to learn a lot just by listening to you. On the multiple end-points subject, it's something I thought about for the work on vCheck-NSX, if you could find a way to make it work, it would be really useful - I have multiple copies of the vCheck report running, which in some respects works well, as the two platforms I'm querying have different use cases - on one platform I don't care about VM-level checks, on the other I do - You'd possibly want some way of being able to tell each plugin which VC's you care about being checked against (and potentially different exclusions/variables for each too). |
@vScripter Yeah, looking good 👍 I had a go at converting to modules a couple of years ago and just couldn't quite come up with a solution that worked well enough to persist with. I think we're on the right track though 😄 I'll throw another thing into the mix- filtering. This is something that has come up a lot over the years of vCheck. People want to be able to filter objects in reports e.g. just run a report against a single datacenter/cluster/host/whatever. Building in a standard filtering definition into our plugins (and ideally the connection/endpoint definition) would be a nice feature. |
@Sneddo That's a good one 👌🏻 |
Added the summarized list to the description of this issue as well as an updated config file with some different samples of what we might could use (global config). |
just throwing this out there - are there technical issues with separating out the framework in that way? thanks |
@mrkwbr I'm actually working on getting that functionality in place, however, it's pretty close to an entire re-write of the tool, in order to support the original functionality and fix some of the other limitations the existing framework has. The way I am approaching it, each test framework will be a 'Plugin', which will basically be a directory with the test files beneath it. There is a link to the module layout in the issue description, above, that I am keeping up to date as I work through the re-design. |
Figure out the best way to handle global config, as well as plugin config.
Mind Map of Module Layout this is how the module is currently laid out.
Guidelines
Start-vCheck
we might could drop right into aforeach
loop, or even execute in different .NET runspaces to maximize parallel execution. (my brain is thinking some like a.JSON
file that might look like the example, below (it's purely a spitball example):Example Config File
The text was updated successfully, but these errors were encountered: