GitLab's annual major release is around the corner. Along with a lot of new and exciting features, there will be a few breaking changes. Learn more here.

sc91_install.ps1 3.53 KB
Newer Older
1
$InstallDirectory = "D:\websites\"
Viet Hoang's avatar
Viet Hoang committed
2
# The Prefix that will be used on SOLR, Website and Database instances.
3
$Prefix = "sc910"
Viet Hoang's avatar
Viet Hoang committed
4 5 6
# 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.
7
$SCInstallRoot = "D:\sc91_install"
Viet Hoang's avatar
Viet Hoang committed
8
# The name for the XConnect service.
9 10 11
$XConnectSiteName = "$prefix.xconnect.local"
# The Sitecore site instance name.
$SitecoreSiteName = "$prefix.local"
Viet Hoang's avatar
Viet Hoang committed
12
# Identity Server site name
13
$IdentityServerSiteName = "$prefix.identityserver.local"
Viet Hoang's avatar
Viet Hoang committed
14
# The Path to the license file
15
$LicenseFile = "$SCInstallRoot\license.xml"
Viet Hoang's avatar
Viet Hoang committed
16
# The URL of the Solr Server
17
$SolrUrl = "https://localhost:8984/solr"
Viet Hoang's avatar
Viet Hoang committed
18
# The Folder that Solr has been installed to.
19
$SolrRoot = "D:\Solr\solr-7.2.1"
Viet Hoang's avatar
Viet Hoang committed
20
# The Name of the Solr Service.
21
$SolrService = "Solr-7.2.1"
Viet Hoang's avatar
Viet Hoang committed
22 23
# The DNS name or IP of the SQL Instance.
$SqlServer = "DESKTOP-XXXXXXX"
24 25 26
# A SQL user with sysadmin privileges.
$SqlAdminUser = "sa"
# The password for $SQLAdminUser.
Viet Hoang's avatar
Viet Hoang committed
27 28 29 30 31 32 33 34
$SqlAdminPassword = "password"
# 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
35
$PasswordRecoveryUrl = "http://$SitecoreSiteName"
Viet Hoang's avatar
Viet Hoang committed
36
# The URL of the Identity Server
37
$SitecoreIdentityAuthority = "https://$IdentityServerSiteName"
Viet Hoang's avatar
Viet Hoang committed
38 39 40
# 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.
41
$ClientSecret = "SIF-Default"
Viet Hoang's avatar
Viet Hoang committed
42
# Pipe-separated list of instances (URIs) that are allowed to login via Sitecore Identity.
43
$AllowedCorsOrigins = "http://$SitecoreSiteName"
Viet Hoang's avatar
Viet Hoang committed
44 45


46 47
# Install XP0 via combined partials file.
$singleDeveloperParams = @{
Viet Hoang's avatar
Viet Hoang committed
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
    Path = "$SCInstallRoot\XP0-SingleDeveloper.json"
	InstallDirectory = $InstallDirectory
    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
72
}
Viet Hoang's avatar
Viet Hoang committed
73

74
Push-Location $SCInstallRoot
Viet Hoang's avatar
Viet Hoang committed
75

76
Install-SitecoreConfiguration @singleDeveloperParams *>&1 | Tee-Object XP0-SingleDeveloper.log
Viet Hoang's avatar
Viet Hoang committed
77 78 79 80 81

# 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