Skip to content

Commit

Permalink
fix: Invoke-DriDeployment fails - parameter format (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
jshiplett authored Mar 22, 2024
1 parent fe1cce0 commit 4c05bcd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
- Fixed `Invoke-IomDeployment` cmdlet to point out the correct certificate folder.
- Fixed `Set-LocalUserPasswordExpiration` cmdlet if statement for `warnDays`.
- Fixed `Invoke-DriDeployment` cmdlet to handle message output for error during execution of `Add-StoragePolicy`.
- Fixed `Invoke-DriDeployment` cmdlet to format -masterNtpServers, -masterDnsServers, and -workerDnsServers parameter values as arrays.
- Fixed `Get-vRLIRole` cmdlet to ensure it returns data correctly from the API.
- Fixed `Invoke-PcaDeployment` cmdlet where the `Add-NsxtVidmRole` was used instead of `Add-NsxtLdapRole`.
- Fixed `Invoke-PcaDeployment` cmdlet where the -vraUser value in `New-vRACloudAccount` was incorrect.
Expand Down
2 changes: 1 addition & 1 deletion PowerValidatedSolutions.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
RootModule = 'PowerValidatedSolutions.psm1'

# Version number of this module.
ModuleVersion = '2.9.0.1046'
ModuleVersion = '2.9.0.1047'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
11 changes: 8 additions & 3 deletions PowerValidatedSolutions.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -8960,6 +8960,11 @@ Function Invoke-DriDeployment {
}

if (!$failureDetected) {
$dnsA = $jsonInput.dns.Split(',')[0]
$dnsB = $jsonInput.dns.Split(',')[1]
$ntpA = $jsonInput.ntp.Split(',')[0]
$ntpB = $jsonInput.ntp.Split(',')[1]

$wmClusterInput = @{
server = $jsonInput.sddcManagerFqdn
user = $jsonInput.sddcManagerUser
Expand All @@ -8974,8 +8979,8 @@ Function Invoke-DriDeployment {
managementNetworkGateway = $jsonInput.tanzuManagementGateway
managementNetworkSubnetMask = $jsonInput.tanzuManagementSubnetMask
masterDnsName = $jsonInput.supervisorClusterName + "." + $jsonInput.domainFqdn
masterNtpServers = @($jsonInput.ntp)
masterDnsServers = @($jsonInput.dns)
masterNtpServers = @($ntpA, $ntpB)
masterDnsServers = @($dnsA, $dnsB)
contentLibrary = $jsonInput.contentLibraryName
ephemeralStoragePolicy = $jsonInput.storagePolicyName
imageStoragePolicy = $jsonInput.storagePolicyName
Expand All @@ -8987,7 +8992,7 @@ Function Invoke-DriDeployment {
externalIngressCIDRs = $jsonInput.tanzuIngressSubnetCidr
externalEgressCIDRs = $jsonInput.tanzuEgressSubnetCidr
masterDnsSearchDomain = $jsonInput.searchPath
workerDnsServers = @($jsonInput.dns)
workerDnsServers = @($dnsA, $dnsB)
}
Show-PowerValidatedSolutionsOutput -message "Deploying a Supervisor for $solutionName"
$StatusMsg = Enable-SupervisorCluster @wmClusterInput -WarningAction SilentlyContinue -ErrorAction SilentlyContinue -WarningVariable WarnMsg -ErrorVariable ErrorMsg
Expand Down

0 comments on commit 4c05bcd

Please sign in to comment.