Skip to content

Commit

Permalink
fix: configure NSX Syslog servers in the correct order
Browse files Browse the repository at this point in the history
- Fixed `Invoke-IlaDeployment` cmdlet to configure NSX Syslog servers in the correct order after connecting VI Workload Domains.

Signed-off-by: Gary Blake <gblake@vmware.com>
  • Loading branch information
GaryJBlake committed Jun 14, 2024
1 parent 1e22092 commit 9d08e57
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
> Release Date: 2024-06-14
- Fixed `Invoke-IamDeployment` cmdlet where reduced privileges are applied to the incorrect service account.
- Fixed `Invoke-IlaDeployment` cmdlet to configure NSX Syslog servers in the correct order after connecting VI Workload Domains.

## v2.10.0

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.10.1.1000'
ModuleVersion = '2.10.1.1001'
# Supported PSEditions
# CompatiblePSEditions = @()

Expand Down
27 changes: 14 additions & 13 deletions PowerValidatedSolutions.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -12970,6 +12970,16 @@ Function Invoke-IlaDeployment {
# messageHandler -statusMessage $StatusMsg -warningMessage $WarnMsg -errorMessage $ErrorMsg
}

if (!$failureDetected) {
Show-PowerValidatedSolutionsOutput -message "Connecting VI Workload Domains to $logsProductName"
foreach ($sddcDomain in $allWorkloadDomains) {
if ($sddcDomain.type -eq "VI") {
$StatusMsg = Register-vRLIWorkloadDomain -server $jsonInput.sddcManagerFqdn -user $jsonInput.sddcManagerUser -pass $jsonInput.sddcManagerPass -domain $sddcDomain.name -status ENABLED -WarningAction SilentlyContinue -ErrorAction SilentlyContinue -WarningVariable WarnMsg -ErrorVariable ErrorMsg
messageHandler -statusMessage $StatusMsg -warningMessage $WarnMsg -errorMessage $ErrorMsg; if ($ErrorMsg) { $failureDetected = $true }
}
}
}

if (!$failureDetected) {
Show-PowerValidatedSolutionsOutput -message "Configuring the NSX Edge Nodes to Forward Log Events to $logsProductName"
foreach ($sddcDomain in $allWorkloadDomains) {
Expand Down Expand Up @@ -13010,22 +13020,13 @@ Function Invoke-IlaDeployment {
messageHandler -statusMessage $StatusMsg -warningMessage $WarnMsg -errorMessage $ErrorMsg; if ($ErrorMsg) { $failureDetected = $true }
}

if (!$failureDetected) {
Show-PowerValidatedSolutionsOutput -message "Connecting VI Workload Domains to $logsProductName"
foreach ($sddcDomain in $allWorkloadDomains) {
if ($sddcDomain.type -eq "VI") {
$StatusMsg = Register-vRLIWorkloadDomain -server $jsonInput.sddcManagerFqdn -user $jsonInput.sddcManagerUser -pass $jsonInput.sddcManagerPass -domain $sddcDomain.name -status ENABLED -WarningAction SilentlyContinue -ErrorAction SilentlyContinue -WarningVariable WarnMsg -ErrorVariable ErrorMsg
messageHandler -statusMessage $StatusMsg -warningMessage $WarnMsg -errorMessage $ErrorMsg; if ($ErrorMsg) { $failureDetected = $true }
}
}
}

if (!$failureDetected) {
Show-PowerValidatedSolutionsOutput -type NOTE -message "Finished Deployment of $solutionName"
}
} else {
Show-PowerValidatedSolutionsOutput -type ERROR -message "Implementation of Workspace ONE Access in $lcmProductName Not Found: PRE_VALIDATION_FAILED"
}

if (!$failureDetected) {
Show-PowerValidatedSolutionsOutput -type NOTE -message "Finished Deployment of $solutionName"
}
}
}
}
Expand Down

0 comments on commit 9d08e57

Please sign in to comment.