Guest User

Untitled

a guest
Jan 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. #define parameters
  2. $prefix = "S9U1Demo"
  3. $PSScriptRoot = "C:Resourcefiles"
  4. $XConnectCollectionService = "$prefix.xconnect"
  5. $sitecoreSiteName = "$prefix.Site"
  6. $SolrUrl = "https://localhost:8983/solr"
  7. $SolrRoot = "C:Solr-6.6.2"
  8. $SolrService = "solr-6.6.2"
  9. $SqlServer = "CLDBHPMKJSQLEXPRESS"
  10. $SqlAdminUser = "Sitecore9"
  11. $SqlAdminPassword="test"
  12.  
  13. #install client certificate for xconnect
  14. $certParams = @{
  15. Path = "$PSScriptRootxconnect-createcert.json"
  16. CertificateName = "$prefix.xconnect_client"
  17. }
  18. Install-SitecoreConfiguration @certParams -Verbose
  19.  
  20. #install solr cores for xdb
  21. $solrParams = @{
  22. Path = "$PSScriptRootxconnect-solr.json"
  23. SolrUrl = $SolrUrl
  24. SolrRoot = $SolrRoot
  25. SolrService = $SolrService
  26. CorePrefix = $prefix
  27. }
  28. Install-SitecoreConfiguration @solrParams
  29.  
  30. #deploy xconnect instance
  31. $xconnectParams = @{
  32. Path = "$PSScriptRootxconnect-xp0.json"
  33. Package = "$PSScriptRootSitecore 9.0.1 rev. 171219 (OnPrem)_xp0xconnect.scwdp.zip"
  34. LicenseFile = "$PSScriptRootlicense.xml"
  35. Sitename = $XConnectCollectionService
  36. XConnectCert = $certParams.CertificateName
  37. SqlDbPrefix = $prefix
  38. SqlServer = $SqlServer
  39. SqlAdminUser = $SqlAdminUser
  40. SqlAdminPassword = $SqlAdminPassword
  41. SolrCorePrefix = $prefix
  42. SolrURL = $SolrUrl
  43. }
  44. Install-SitecoreConfiguration @xconnectParams
  45.  
  46. #install solr cores for sitecore
  47. $solrParams = @{
  48. Path = "$PSScriptRootsitecore-solr.json"
  49. SolrUrl = $SolrUrl
  50. SolrRoot = $SolrRoot
  51. SolrService = $SolrService
  52. CorePrefix = $prefix
  53. }
  54. Install-SitecoreConfiguration @solrParams
  55.  
  56. #install sitecore instance
  57. $xconnectHostName = "$prefix.xconnect"
  58. $sitecoreParams = @{
  59. Path = "$PSScriptRootsitecore-XP0.json"
  60. Package = "$PSScriptRootSitecore 9.0.1 rev. 171219 (OnPrem)_single.scwdp.zip"
  61. LicenseFile = "$PSScriptRootlicense.xml"
  62. SqlDbPrefix = $prefix
  63. SqlServer = $SqlServer
  64. SqlAdminUser = $SqlAdminUser
  65. SqlAdminPassword = $SqlAdminPassword
  66. SolrCorePrefix = $prefix
  67. SolrUrl = $SolrUrl
  68. XConnectCert = $certParams.CertificateName
  69. Sitename = $sitecoreSiteName
  70. XConnectCollectionService = "https://$XConnectCollectionService"
  71. }
  72. Install-SitecoreConfiguration @sitecoreParams
Add Comment
Please, Sign In to add comment