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:SAFSitecore90SIFVersion = "1.2.1"
$global:SAFSitecore91SIFVersion = "2.1.0"

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