-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathparameters.ps1
172 lines (155 loc) · 7.42 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<#
Install script for a scaled instance on a single machine
All sitecore applications/services are installed on the current machine
All databases on installed on the given SqlServer
#>
# General Args
$prefix = 'sug'
$configsRoot = Join-Path $PSScriptRoot Configs
$packagesRoot = Join-Path $PSScriptRoot Packages
$licenseFilePath = Join-Path $PSScriptRoot license.xml
$sqlServer = 'WIN-7RN4PVU6LRS'
$instanceNames = @{
Sitecore = @{
Cd = "${prefix}.cd"
Cm = "${prefix}.cm"
Rep = "${prefix}.rep"
Prc = "${prefix}.prc"
}
XConnect = @{
Collection = "${prefix}.xconnect.collection"
CollectionSearch = "${prefix}.xconnect.collectionsearch"
Reference = "${prefix}.xconnect.reference"
MA = "${prefix}.xconnect.ma"
MAReporting = "${prefix}.xconnect.marep"
}
}
### Certs ###
# Create XConnectCert
$cert = @{
Path = Join-Path $configsRoot xconnect-createcert.json
CertificateName = "${prefix}.xconnect"
CertPath = Join-Path $PSScriptRoot Certificates
}
### Sitecore ###
# Configre Sitecore Solr
$sitecoreSolr = @{
Path = Join-Path $configsRoot sitecore-solr.json
SolrRoot = 'C:\Solr\6.6.2'
SolrService = 'Solr-6.6.2'
CorePrefix = $prefix
}
# Install Sitecore CM
$sitecoreCM = @{
Path = Join-Path $configsRoot sitecore-xp1-cm.json
Package = Join-Path $packagesRoot 'Sitecore 9.0.1 rev. 171219 (OnPrem)_cm.scwdp.zip'
LicenseFile = $licenseFilePath
SqlDbPrefix = $prefix
SolrCorePrefix = $prefix
XConnectCert = $cert.CertificateName
SiteName = $instanceNames.Sitecore.Cm
SqlServer = $sqlServer
ProcessingService = "https://$($instanceNames.Sitecore.Prc)"
ReportingService = "https://$($instanceNames.Sitecore.Rep)"
XConnectCollectionSearchService = "https://$($instanceNames.XConnect.CollectionSearch)"
XConnectReferenceDataService = "https://$($instanceNames.XConnect.Reference)"
MarketingAutomationOperationsService = "https://$($instanceNames.XConnect.MA)"
MarketingAutomationReportingService = "https://$($instanceNames.XConnect.MAReporting)"
}
# Install Sitecore CD
$sitecoreCD = @{
Path = Join-Path $configsRoot sitecore-xp1-cd.json
Package = Join-Path $packagesRoot 'Sitecore 9.0.1 rev. 171219 (OnPrem)_cd.scwdp.zip'
LicenseFile = $licenseFilePath
SqlDbPrefix = $prefix
SolrCorePrefix = $prefix
XConnectCert = $sitecoreCM.XConnectCert
SiteName = $instanceNames.Sitecore.Cd
SqlServer = $sqlServer
XConnectCollectionService = "https://$($instanceNames.XConnect.Collection)"
XConnectReferenceDataService = "https://$($instanceNames.XConnect.Reference)"
MarketingAutomationOperationsService = "https://$($instanceNames.XConnect.MA)"
MarketingAutomationReportingService = "https://$($instanceNames.XConnect.MAReporting)"
}
# Install Sitecore PRC - All interaction processing occurs here (live/historic)
$sitecorePRC = @{
Path = Join-Path $configsRoot sitecore-xp1-prc.json
Package = Join-Path $packagesRoot 'Sitecore 9.0.1 rev. 171219 (OnPrem)_prc.scwdp.zip'
LicenseFile = $licenseFilePath
SqlDbPrefix = $prefix
SolrCorePrefix = $prefix
XConnectCert = $sitecoreCM.XConnectCert
SiteName = $instanceNames.Sitecore.Prc
SqlServer = $sqlServer
XConnectCollectionService = "https://$($instanceNames.XConnect.Collection)"
}
# Install Sitecore REP - Stateless - endpoint to the reporting database
$sitecoreREP = @{
Path = Join-Path $configsRoot sitecore-xp1-rep.json
Package = Join-Path $packagesRoot 'Sitecore 9.0.1 rev. 171219 (OnPrem)_rep.scwdp.zip'
LicenseFile = $licenseFilePath
SqlDbPrefix = $prefix
SiteName = $instanceNames.Sitecore.Rep
SqlServer = $sqlServer
}
### XConnect ###
# Configure XConnect Solr
$xconnectSolr = @{
Path = Join-Path $configsRoot xconnect-solr.json
SolrRoot = $sitecoreSolr.SolrRoot
SolrService = $sitecoreSolr.SolrService
CorePrefix = $prefix
}
# Install XConnect Collection - R/W endpoint for single contacts/interactions
$xconnectCollection = @{
Path = Join-Path $configsRoot xconnect-xp1-collection.json
Package = Join-Path $packagesRoot 'Sitecore 9.0.1 rev. 171219 (OnPrem)_xp1collection.scwdp.zip'
LicenseFile = $licenseFilePath
SiteName = $instanceNames.Xconnect.Collection
SqlDbPrefix = $prefix
SqlServer = $sqlServer
XConnectCert = $sitecoreCM.XConnectCert
}
# Install XConnect Collection Search - Listings of contacts/interactions / Query API - Service for XConnect indexer
$xconnectCollectionSearch = @{
Path = Join-Path $configsRoot xconnect-xp1-collectionsearch.json
Package = Join-Path $packagesRoot 'Sitecore 9.0.1 rev. 171219 (OnPrem)_xp1collectionsearch.scwdp.zip'
LicenseFile = $licenseFilePath
SiteName = $instanceNames.Xconnect.CollectionSearch
SqlDbPrefix = $prefix
SolrCorePrefix = $prefix
SqlServer = $sqlServer
XConnectCert = $sitecoreCM.XConnectCert
}
# Install XConnect MA Reporting - Service for querying MA info
$xconnectMAReporting = @{
Path = Join-Path $configsRoot xconnect-xp1-marketingautomationreporting.json
Package = Join-Path $packagesRoot 'Sitecore 9.0.1 rev. 171219 (OnPrem)_xp1marketingautomationreporting.scwdp.zip'
LicenseFile = $licenseFilePath
SiteName = $instanceNames.Xconnect.MAReporting
SqlDbPrefix = $prefix
SqlServer = $sqlServer
XConnectCert = $sitecoreCM.XConnectCert
}
# Install XConnect MA - Operations/Engine - Ops webservice API - Live application of goals etc - Engine (service) processes the queue
$xconnectMA = @{
Path = Join-Path $configsRoot xconnect-xp1-marketingautomation.json
Package = Join-Path $packagesRoot 'Sitecore 9.0.1 rev. 171219 (OnPrem)_xp1marketingautomation.scwdp.zip'
LicenseFile = $licenseFilePath
SiteName = $instanceNames.Xconnect.MA
SqlDbPrefix = $prefix
SqlServer = $sqlServer
XConnectCert = $sitecoreCM.XConnectCert
XConnectCollectionService = "https://$($instanceNames.XConnect.Collection)"
XConnectReferenceDataService = "https://$($instanceNames.XConnect.Reference)"
}
# Install XConnect ReferenceData - Store of actual data to trivialise lookups
$xconnectReference = @{
Path = Join-Path $configsRoot xconnect-xp1-referencedata.json
Package = Join-Path $packagesRoot 'Sitecore 9.0.1 rev. 171219 (OnPrem)_xp1referencedata.scwdp.zip'
LicenseFile = $licenseFilePath
SiteName = $instanceNames.Xconnect.Reference
SqlDbPrefix = $prefix
SqlServer = $sqlServer
XConnectCert = $sitecoreCM.XConnectCert
}