ps/Modules/Alkami.DevOps.Installation/Public/Get-ClientWebSiteInformationFromDatabase.ps1

29 lines
803 B
PowerShell
Raw Normal View History

2023-05-30 22:51:22 -07:00
function Get-ClientWebSiteInformationFromDatabase {
<#
.SYNOPSIS
Fetches Client Website Information from Database.
#>
[CmdletBinding()]
param()
# Todo - pull other machines in OU and determine which is an app server
# Execute the below on the remote server
[hashtable[]]$clients += Get-CatalogsFromMaster
$urls = @()
if ($clients.Count -eq 1) {
$ipstsUrl = Get-IPSTSUrlFromClient $clients
$urls += @{Client = $clients.Signature; Admin = $clients.AdminSignature; IPSTS = $ipstsUrl}
}
else {
foreach ($client in $clients) {
$ipstsUrl = Get-IPSTSUrlFromClient $client
$urls += @{Key = $client.Name; Client = $client.Signature; Admin = $client.AdminSignature; IPSTS = $ipstsUrl}
}
}
return $urls
}