Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Requires -Version 3
- param(
- [string]$SitePrefix = "Sitecore",
- [string]$ScInstallDirectory = "C:inetpubwwwroot",
- [string]$SiteHostHeaderName = "SitecoreCm.staging.com",
- [string]$SqlServer = "mssql1.staging.comStaging21",
- [string]$SqlDbPrefix = "Sitecore",
- [string]$CommerceEngineCertificatePath = "..xcommerce.cer",
- [string]$CommerceSearchProvider = "SOLR",
- [string]$SolrUrl = "https://01sitecore1.staging.com:8983/solr",
- [string]$SolrRoot = "c:solrsolr-6.6.2",
- [string]$SolrService = "solr-6.6.2"
- )
- $global:DEPLOYMENT_DIRECTORY=Split-Path $MyInvocation.MyCommand.Path
- $modulesPath=( Join-Path -Path $DEPLOYMENT_DIRECTORY -ChildPath "Modules" )
- if ($env:PSModulePath -notlike "*$modulesPath*")
- {
- $p = $env:PSModulePath + ";" + $modulesPath
- [Environment]::SetEnvironmentVariable("PSModulePath",$p)
- }
- $params = @{
- Path = Resolve-Path '.ConfigurationCommerceMaster_SingleServer.json'
- SiteName = $SiteHostHeaderName
- SiteHostHeaderName = $SiteHostHeaderName
- InstallDir = "$($ScInstallDirectory)$($SiteHostHeaderName)"
- XConnectInstallDir = "$($ScInstallDirectory)$($SitePrefix).xconnect.local"
- CertificateName = "8C41C6BE5471128081E32BE5B0440D8EBEC42B1"
- CommerceServicesDbServer = $SqlServer #OR "SQLServerNameSQLInstanceName"
- CommerceServicesDbName = "SitecoreCommerce9_SharedEnvironments"
- CommerceServicesGlobalDbName = "SitecoreCommerce9_Global"
- SitecoreDbServer = $SqlServer #OR "SQLServerNameSQLInstanceName"
- SitecoreCoreDbName = "$($SqlDbPrefix)_Core"
- SitecoreUsername = "sitecoreadmin"
- SitecoreUserPassword = "whose-alley-dingo-born-lip"
- CommerceSearchProvider = $CommerceSearchProvider
- SolrUrl = "$($SolrUrl)"
- SolrRoot = "$($SolrRoot)"
- SolrService = "$($SolrService)"
- SolrSchemas = ( Join-Path -Path $DEPLOYMENT_DIRECTORY -ChildPath "SolrSchemas" )
- SearchIndexPrefix = ""
- AzureSearchServiceName = ""
- AzureSearchAdminKey = ""
- AzureSearchQueryKey = ""
- CommerceEngineDacPac = Resolve-Path -Path "..Sitecore.Commerce.Engine.SDK.*Sitecore.Commerce.Engine.DB.dacpac"
- CommerceOpsServicesPort = "5015"
- CommerceShopsServicesPort = "5005"
- CommerceAuthoringServicesPort = "5000"
- CommerceMinionsServicesPort = "5010"
- SitecoreCommerceEngineZipPath = Resolve-Path -Path "..Sitecore.Commerce.Engine.2*.zip"
- SitecoreBizFxServicesContentPath = Resolve-Path -Path "..Sitecore.BizFX.1.1.9"
- SitecoreIdentityServerZipPath = Resolve-Path -Path "..Sitecore.IdentityServer.1.*.zip"
- CommerceEngineCertificatePath = Resolve-Path -Path "$($CommerceEngineCertificatePath)"
- SiteUtilitiesSrc = ( Join-Path -Path $DEPLOYMENT_DIRECTORY -ChildPath "SiteUtilityPages" )
- HabitatImagesModuleFullPath = Resolve-Path -Path "..Sitecore.Commerce.Habitat.Images-*.zip"
- AdvImagesModuleFullPath = Resolve-Path -Path "..Adventure Works Images.zip"
- CommerceConnectModuleFullPath = Resolve-Path -Path "..Sitecore Commerce Connect*.zip"
- CEConnectPackageFullPath = Resolve-Path -Path "..Sitecore.Commerce.Engine.Connect*.update"
- PowerShellExtensionsModuleFullPath = Resolve-Path -Path "..Sitecore PowerShell Extensions*.zip"
- SXAModuleFullPath = Resolve-Path -Path "..Sitecore Experience Accelerator*.zip"
- SXACommerceModuleFullPath = Resolve-Path -Path "..Sitecore Commerce Experience Accelerator 1.*.zip"
- SXAStorefrontModuleFullPath = Resolve-Path -Path "..Sitecore Commerce Experience Accelerator Storefront 1.*.zip"
- SXAStorefrontThemeModuleFullPath = Resolve-Path -Path "..Sitecore Commerce Experience Accelerator Storefront Themes*.zip"
- SXAStorefrontCatalogModuleFullPath = Resolve-Path -Path "..Sitecore Commerce Experience Accelerator Habitat Catalog*.zip"
- MergeToolFullPath = Resolve-Path -Path "..Microsoft.Web.XmlTransform.dll"
- UserAccount = @{
- Domain = "mydomain"
- UserName = '21-sitecore'
- Password = 'thepassword'
- }
- BraintreeAccount = @{
- MerchantId = ''
- PublicKey = ''
- PrivateKey = ''
- }
- SitecoreIdentityServerName = "SitecoreIdentityServer"
- }
- if ($CommerceSearchProvider -eq "SOLR") {
- Install-SitecoreConfiguration @params
- }
- elseif ($CommerceSearchProvider -eq "AZURE"){
- Install-SitecoreConfiguration @params -Skip InstallSolrCores
- }
- "UtilitiesBaseUrl": "[concat('https://', concat(parameter('SiteHostHeaderName'), '/SiteUtilityPages'))]",
- <rule name="Forbidden" enabled="true" stopProcessing="true">
- <match url="(.*)" />
- <conditions>
- <add input="{HTTPS}" pattern="^OFF$" />
- <add input="{HTTP_METHOD}" pattern="GET" />
- </conditions>
- <action type="CustomResponse" statusCode="403" subStatusCode="0" />
- </rule>
- <event name="packageinstall:items:ended">
- <handler type="Sitecore.ContentSearch.Events.PackagingEventHandler, Sitecore.ContentSearch" method="OnPackageInstallItemsEndHandler" />
- </event>
Add Comment
Please, Sign In to add comment