-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparameters.ps1
56 lines (49 loc) · 1.63 KB
/
parameters.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# General Args
$prefix = 'demo_jss'
$configsRoot = Join-Path $PSScriptRoot 'configs'
$packagesRoot = Join-Path $PSScriptRoot 'packages'
$licenseFilePath = Join-Path $PSScriptRoot 'license.xml'
$sqlServer = 'localhost'
$sqlServerAdminUser = 'sa'
$sqlServerAdminPassword = 'blank'
$sitecoreVersion = 'Sitecore 9.0.2 rev. 180604'
$xconnectCertificateName = "$prefix.xconnect"
$instanceNames = @{
Sitecore = "${prefix}"
XConnect = "${prefix}.xconnect"
}
$solr = @{
Root = 'c:\solr\solr-6.6.2\'
Service = 'solr-6.6.2'
}
### Sitecore ###
# Configre Sitecore Solr
$sitecoreSolr = @{
Path = Join-Path $configsRoot sitecore-solr.json
SolrRoot = $solr.Root
SolrService = $solr.Service
CorePrefix = $prefix
}
# Install Sitecore
$sitecore = @{
Path = Join-Path $configsRoot sitecore-xm0.json
Package = Join-Path $packagesRoot "$sitecoreVersion (OnPrem)_cm.scwdp.zip"
LicenseFile = $licenseFilePath
SqlDbPrefix = $prefix
SolrCorePrefix = $prefix
SiteName = $instanceNames.Sitecore
SqlServer = $sqlServer
SqlAdminUser = $sqlServerAdminUser
SqlAdminPassword = $sqlServerAdminPassword
}
### Modules ###
# Install Sitecore JSS package
$jss = @{
Path = Join-Path $configsRoot install-package.json
Package = Join-Path $packagesRoot 'Sitecore JavaScript Services Tech Preview Server 9.0.1 rev. 180724.zip'
SiteName = $prefix
}
$jssWebConfig = @{
Path = Join-Path $configsRoot update-webconfig.json
SiteName = $prefix
}