-
-
Save phaniav/dd0ac71fb107d20bedad7acbaa3a6d1a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Add the Sitecore MyGet repository to PowerShell | |
#Register-PSRepository -Name SitecoreGallery -SourceLocation https://sitecore.myget.org/F/sc-powershell/api/v2 | |
# Install the Sitecore Install Framwork module | |
#Install-Module SitecoreInstallFramework | |
# Install the Sitecore Fundamentals module (provides additional functionality for local installations like creating self-signed certificates) | |
#Install-Module SitecoreFundamentals | |
# Import the modules into your current PowerShell context (if necessary) | |
Import-Module SitecoreFundamentals | |
Import-Module SitecoreInstallFramework | |
#define parameters | |
$prefix = "sc90" | |
$PSScriptRoot = "C:\Users\tomdudfield\Downloads\Sitecore 9.0.1 rev. 171219 (WDP XP0 packages)" | |
$XConnectCollectionService = "$prefix.xconnect" | |
$sitecoreSiteName = "$prefix.local" | |
$SolrUrl = "https://solr:8983/solr" | |
$SolrRoot = "C:\solr\solr-6.6.2" | |
$SolrService = "solr-6.6.2" | |
$SqlServer = "localhost" | |
$SqlAdminUser = "sa" | |
$SqlAdminPassword = "Pa55word" | |
#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.1 rev. 171219 (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 | |
$sitecoreParams = | |
@{ | |
Path = "$PSScriptRoot\sitecore-XP0.json" | |
Package = "$PSScriptRoot\Sitecore 9.0.1 rev. 171219 (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