Last active
December 3, 2018 10:06
-
-
Save isaadansari/85af209cf41f112916e6ea96ddcd1fea to your computer and use it in GitHub Desktop.
XP0-SingleDeveloper.ps1
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
# The Prefix that will be used on SOLR, Website and Database instances. | |
$Prefix = "xp91" | |
# The Password for the Sitecore Admin User. This will be regenerated if left on the default. | |
$SitecoreAdminPassword = "SIF-Default" | |
# The root folder with the license file and WDP files. | |
$SCInstallRoot = "C:\ResourceFiles" | |
# The name for the XConnect service. | |
$XConnectSiteName = "$prefix.xconnect" | |
# The Sitecore site instance name. | |
$SitecoreSiteName = "$prefix.sc" | |
# Identity Server site name | |
$IdentityServerSiteName = "$prefix.identityserver" | |
# The Path to the license file | |
$LicenseFile = "$SCInstallRoot\license.xml" | |
# The URL of the Solr Server | |
$SolrUrl = "https://solr:8983/solr" | |
# The Folder that Solr has been installed to. | |
$SolrRoot = "C:\solr\solr-7.2.1" | |
# The Name of the Solr Service. | |
$SolrService = "solr-7.2.1" | |
# The DNS name or IP of the SQL Instance. | |
$SqlServer = ".\SQLSERVER" | |
# A SQL user with sysadmin privileges. | |
$SqlAdminUser = "sa" | |
# The password for $SQLAdminUser. | |
$SqlAdminPassword = "sa_123_sa" | |
# The path to the XConnect Package to Deploy. | |
$XConnectPackage = (Get-ChildItem "$SCInstallRoot\Sitecore 9.1.0 rev. * (OnPrem)_xp0xconnect.scwdp.zip").FullName | |
# The path to the Sitecore Package to Deploy. | |
$SitecorePackage = (Get-ChildItem "$SCInstallRoot\Sitecore 9.1.0 rev. * (OnPrem)_single.scwdp.zip").FullName | |
# The path to the Identity Server Package to Deploy. | |
$IdentityServerPackage = (Get-ChildItem "$SCInstallRoot\Sitecore.IdentityServer 2.0.0 rev. * (OnPrem)_identityserver.scwdp.zip").FullName | |
# The Identity Server password recovery URL, this should be the URL of the CM Instance | |
$PasswordRecoveryUrl = "http://$SitecoreSiteName" | |
# The URL of the Identity Server | |
$SitecoreIdentityAuthority = "https://$IdentityServerSiteName" | |
# The URL of the XconnectService | |
$XConnectCollectionService = "https://$XConnectSiteName" | |
# The random string key used for establishing connection with IdentityService. This will be regenerated if left on the default. | |
$ClientSecret = "SIF-Default" | |
# Pipe-separated list of instances (URIs) that are allowed to login via Sitecore Identity. | |
$AllowedCorsOrigins = "http://$SitecoreSiteName" | |
# Install XP0 via combined partials file. | |
$singleDeveloperParams = @{ | |
Path = "$SCInstallRoot\XP0-SingleDeveloper.json" | |
SqlServer = $SqlServer | |
SqlAdminUser = $SqlAdminUser | |
SqlAdminPassword = $SqlAdminPassword | |
SitecoreAdminPassword = $SitecoreAdminPassword | |
SolrUrl = $SolrUrl | |
SolrRoot = $SolrRoot | |
SolrService = $SolrService | |
Prefix = $Prefix | |
XConnectCertificateName = $XConnectSiteName | |
IdentityServerCertificateName = $IdentityServerSiteName | |
IdentityServerSiteName = $IdentityServerSiteName | |
LicenseFile = $LicenseFile | |
XConnectPackage = $XConnectPackage | |
SitecorePackage = $SitecorePackage | |
IdentityServerPackage = $IdentityServerPackage | |
XConnectSiteName = $XConnectSiteName | |
SitecoreSitename = $SitecoreSiteName | |
PasswordRecoveryUrl = $PasswordRecoveryUrl | |
SitecoreIdentityAuthority = $SitecoreIdentityAuthority | |
XConnectCollectionService = $XConnectCollectionService | |
ClientSecret = $ClientSecret | |
AllowedCorsOrigins = $AllowedCorsOrigins | |
} | |
Push-Location $SCInstallRoot | |
Install-SitecoreConfiguration @singleDeveloperParams *>&1 | Tee-Object XP0-SingleDeveloper.log | |
# Uncomment the below line and comment out the above if you want to remove the XP0 SingleDeveloper Config | |
#Uninstall-SitecoreConfiguration @singleDeveloperParams *>&1 | Tee-Object XP0-SingleDeveloper-Uninstall.log | |
Pop-Location |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment