SAFParams.ps1

Param(
    [object]$Configuration
)

$global:SAFConfiguration = $Configuration
$global:SAFTempDir = "$PSScriptRoot\temp"
$global:SAFInstallPackageDir = "$SAFTempDir\package"
$global:SAFConfigureSSLPipelines = "$PSScriptRoot\Pipelines\Definitions\SSL\Pipelines.json"
$global:SAFInstallSitecoreOnPremPipelines = "$PSScriptRoot\Pipelines\Definitions\Sitecore\OnPrem"
$global:SAFUninstallPipelines = "$PSScriptRoot\Pipelines\Definitions\Uninstall\Pipelines.json"
$global:SAFInstallSolrPipelines = "$PSScriptRoot\Pipelines\Definitions\Solr\OnPrem"

$global:SAFDefaultPFXPassword = "1234Qwer"
$global:SAFSitecore90SIFMaxVersion = "1.9.9"
$global:SAFSitecore91SIFMaxVersion = "2.9.9"

$global:SAFSolrTempDir = "$(Get-Location)\SolrTemp\solr-$($SAFConfiguration.search.solr.install.version)"
$global:SAFSolrServiceDir = ""
$global:SAFSolrServiceURL = ""
if([string]::IsNullOrEmpty($SAFConfiguration.search.solr.serviceURL)) {
    $global:SAFSolrServiceDir = "$($SAFConfiguration.search.solr.install.installDir)\solr-$($SAFConfiguration.search.solr.install.version)"
    $global:SAFSolrServiceURL = "https://$($SAFConfiguration.search.solr.install.hostName):$($SAFConfiguration.search.solr.install.port)/solr"
}
else {
    $global:SAFSolrServiceURL = $SAFConfiguration.search.solr.serviceURL
}