-
Notifications
You must be signed in to change notification settings - Fork 50
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 in Lab name to the module #78
Comments
@kilasuit This was discussed initially in issue #43. This will definately be needed if we ever progress onto AWS and/or Azure publishing. Whatever we choose to implement has to be implemented in such a way that if a Lab name is not defined in .psd1 file, things still work. I have committed to being able to use an existing DSC configuration document without any modifications. |
@kilasuit Just thinking this through. If we were to extended the configuration data with a lab name, then we could infer this without a -LabName parameter. For example: @{
NonNodeData = @{
Lability = @{
LabName = 'My Test Lab';
}
}
} This would allow us to infer the subdirectory without having to specify the -LabName parameter (I still think that you should be able to override it if required). An alternative could be to search recursively from the Configuration directory root? This might cause issues if you have multiple configurations with the same VM names though.. Thoughts? |
I think that perhaps combining LabName & EnvironmentPrefix would be a good safe bet. This I would then think would end up something like the below @{
NonNodeData = @{
Lability = @{
LabName = 'My Test Lab';
EnvironmentPrefix = 'TLG-';
}
}
} And then VM's would be named
This then would give the below file paths of
That way it shouldn't cause filename or path issues for the files |
This sounds logical. Wouldn't/shouldn't the file paths be:
The .mof files wouldn't/shouldn't be prefixed as that's a Lability "thing"? |
Yes - that makes sense especially when stored in the right lab folders so there would be no need to prefix the mof files. |
@kilasuit Whilst the |
Looping @rikhepworth in here as implementing virtual switches with the prefix/suffix has also been raised. Here are my initial/random thoughts:
Anything else that I've missed?! |
@iainbrighton whilst you can only have one netnat the internal address prefix can be set so that you can span multiple address ranges. I'd strongly urge against external switches. They are a real pain if you don't have a physical adapter. Netnat would be my preference as a one-size-fits all approach. The only time I'd agree to an external switch is if I had to allow inbound traffic to the virtual network and I didn't want to define any nat mappings on the host. You don't set the IP on the virtual switch, but on the adapter created on the host (which includes the name of the vswitch in brackets so you can find it). My thoughts:
|
This would allow me to create a Lab called "Default 2012R2" and then also a "Default 2008R2" lab config and then in Start-LabConfig & Start-Lab just call an additional -LabName Parameter which would then look for configurations in a sub Folder of the Configuration directory.
This could be useful for Lab Configurations for SharePoint 2013/2016 or SQL 2012/2014/2016 etc and would be easier work with.
I would expect this would work off of the Lability EnvironmentPrefix attribute for the Sub Folder & Lab Name Creation and that would be my suggested implementation method
The text was updated successfully, but these errors were encountered: