Created
November 15, 2017 03:19
-
-
Save naveed-ahmad-biz/d05d555daf78f8f3cdd0ce9e6bd0b5d9 to your computer and use it in GitHub Desktop.
Sitecore 9 Install File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define parameters | |
$prefix = "xp0" | |
$PSScriptRoot = "C:\Resources" | |
$XConnectCollectionService = "$prefix.xconnect" | |
$sitecoreSiteName = "$prefix.sc" | |
$SolrUrl = "https://localhost:8989/solr" | |
$SolrRoot = "C:\data\Solr-6.6.1" | |
$SolrService = "Solr-6.6.1" | |
$SqlServer = "MYCOMPUTERNAME\SQLEXPRESS2016" | |
$SqlAdminUser = "sitecoreUser" | |
$SqlAdminPassword="mysupersecretpassword" | |
#install client certificate for xconnect | |
$certParams = @{ | |
Path = "$PSScriptRoot\xconnect-createcert.json" | |
CertificateName = "$prefix.xconnect_client" | |
} | |
Install-SitecoreConfiguration @certParams -Verbose | |
#install solr cores for xdb | |
$solrParams = @{ | |
Path = "$PSScriptRoot\xconnect-solr.json" | |
SolrUrl = $SolrUrl | |
SolrRoot = $SolrRoot | |
SolrService = $SolrService | |
CorePrefix = $prefix | |
} | |
Install-SitecoreConfiguration @solrParams -Verbose | |
#deploy xconnect instance | |
$xconnectParams = @{ | |
Path = "$PSScriptRoot\xconnect-xp0.json" | |
Package = "$PSScriptRoot\Sitecore 9.0.0 rev. 171002 (OnPrem)_xp0xconnect.scwdp.zip" | |
LicenseFile = "$PSScriptRoot\license.xml" | |
Sitename = $XConnectCollectionService | |
XConnectCert = $certParams.CertificateName | |
SqlDbPrefix = $prefix | |
SqlServer = $SqlServer | |
SqlAdminUser = $SqlAdminUser | |
SqlAdminPassword = $SqlAdminPassword | |
SolrCorePrefix = $prefix | |
SolrURL = $SolrUrl | |
} | |
Install-SitecoreConfiguration @xconnectParams -Verbose | |
#install solr cores for sitecore | |
$solrParams = @{ | |
Path = "$PSScriptRoot\sitecore-solr.json" | |
SolrUrl = $SolrUrl | |
SolrRoot = $SolrRoot | |
SolrService = $SolrService | |
CorePrefix = $prefix | |
} | |
Install-SitecoreConfiguration @solrParams -Verbose | |
#install sitecore instance | |
$xconnectHostName = "$prefix.xconnect" | |
$sitecoreParams = @{ | |
Path = "$PSScriptRoot\sitecore-XP0.json" | |
Package = "$PSScriptRoot\Sitecore 9.0.0 rev. 171002 (OnPrem)_single.scwdp.zip" | |
LicenseFile = "$PSScriptRoot\license.xml" | |
SqlDbPrefix = $prefix | |
SqlServer = $SqlServer | |
SqlAdminUser = $SqlAdminUser | |
SqlAdminPassword = $SqlAdminPassword | |
SolrCorePrefix = $prefix | |
SolrUrl = $SolrUrl | |
XConnectCert = $certParams.CertificateName | |
Sitename = $sitecoreSiteName | |
XConnectCollectionService = "https://$XConnectCollectionService" | |
} | |
Install-SitecoreConfiguration @sitecoreParams -Verbose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment