Refactor configuration data export and template loading functions
- Updated Export-ConfigurationData to use resolved configuration data directly and added error handling for missing data. - Enhanced Load-Templates to streamline category loading and improve error handling for missing template directories. - Removed Merge-ConfigurationData function as it is no longer needed. - Refactored Merge-Templates to improve merging logic and handle default files more effectively. - Introduced Get-TemplatePreviewData function to handle template preview data retrieval and merging. - Added Import-OrderedPowerShellDataFile function to support ordered hashtable imports. - Updated Update-ParametersPanel to handle parameter and variable tab updates more efficiently. - Improved Update-TreeView to handle cases where resources are not found. - Added new parameters to Environment.Default.psd1 for Active Directory configuration. - Created new template BGW-LAN.psd1 for domain configuration.
This commit is contained in:
@@ -42,6 +42,89 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ForestMode = @{
|
||||
Type = 'string'
|
||||
DefaultValue = 'WinThreshold'
|
||||
AllowedValues = @(
|
||||
'Win2012R2',
|
||||
'WinThreshold'
|
||||
)
|
||||
Metadata = @{
|
||||
Description = @{
|
||||
'de-DE' = 'Funktionsebene des Active-Directory-Forests.'
|
||||
'en-US' = 'Functional level of the Active Directory forest.'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
DomainMode = @{
|
||||
Type = 'string'
|
||||
DefaultValue = 'WinThreshold'
|
||||
AllowedValues = @(
|
||||
'Win2012R2',
|
||||
'WinThreshold'
|
||||
)
|
||||
Metadata = @{
|
||||
Description = @{
|
||||
'de-DE' = 'Funktionsebene der Active-Directory-Domaene.'
|
||||
'en-US' = 'Functional level of the Active Directory domain.'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
DefaultSiteName = @{
|
||||
Type = 'string'
|
||||
DefaultValue = 'Default-First-Site-Name'
|
||||
Required = $true
|
||||
MinLength = 1
|
||||
MaxLength = 64
|
||||
Metadata = @{
|
||||
Description = @{
|
||||
'de-DE' = 'Standard-AD-Sitename fuer Domaenencontroller und Subnetze.'
|
||||
'en-US' = 'Default AD site name for domain controllers and subnets.'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
DefaultSubnet = @{
|
||||
Type = 'string'
|
||||
DefaultValue = ''
|
||||
Required = $false
|
||||
Pattern = '^$|^\d{1,3}(\.\d{1,3}){3}/\d{1,2}$'
|
||||
Metadata = @{
|
||||
Description = @{
|
||||
'de-DE' = 'Optionales Standard-Subnetz im CIDR-Format.'
|
||||
'en-US' = 'Optional default subnet in CIDR notation.'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
DomainAdministratorCredentialName = @{
|
||||
Type = 'string'
|
||||
DefaultValue = 'DomainAdministrator'
|
||||
Required = $true
|
||||
Sensitive = $true
|
||||
Metadata = @{
|
||||
Description = @{
|
||||
'de-DE' = 'Name der Credential-Referenz fuer den Domaenenadministrator.'
|
||||
'en-US' = 'Name of the credential reference for the domain administrator.'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SafeModeAdministratorPasswordSecretName = @{
|
||||
Type = 'string'
|
||||
DefaultValue = 'SafeModeAdministratorPassword'
|
||||
Required = $true
|
||||
Sensitive = $true
|
||||
Metadata = @{
|
||||
Description = @{
|
||||
'de-DE' = 'Name der Secret-Referenz fuer das Safe-Mode-Administrator-Kennwort.'
|
||||
'en-US' = 'Name of the secret reference for the safe mode administrator password.'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Resources = @{
|
||||
@@ -158,4 +241,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user