Skip to content
Permalink
Browse files

add habitat home 901 ps1

  • Loading branch information...
SitecoreJapan committed Jun 28, 2018
1 parent 05372c2 commit 8802ad219457e0a6e3144e8c102827fd34eed0ec
Showing with 72 additions and 0 deletions.
  1. +72 −0 901/DemoHabitatInstall.ps1
@@ -0,0 +1,72 @@
# パラメーターの設定
$prefix = "habitat.dev.local"
$PSScriptRoot = "C:\Projects\sif"
$XConnectCollectionService = "habitat_xconnect.dev.local"
$sitecoreSiteName = "habitat.dev.local"
$SolrUrl = "https://localhost:8983/solr"
$SolrRoot = "C:\solr\solr-6.6.2"
$SolrService = "Solr-6.6.2"
$SqlServer = "."
$SqlAdminUser = "sa"
$SqlAdminPassword="Pleasechang3p@ssword"

# xConnect のためのクライアント証明書のインストール
$certParams = @{
Path = "$PSScriptRoot\xconnect-createcert.json"
CertificateName = "$prefix.xconnect_client"
}
Install-SitecoreConfiguration @certParams -Verbose

# xDB のための Solr の設定
$solrParams = @{
Path = "$PSScriptRoot\xconnect-solr.json"
SolrUrl = $SolrUrl
SolrRoot = $SolrRoot
SolrService = $SolrService
CorePrefix = $prefix
}
Install-SitecoreConfiguration @solrParams

# xConnect のインスタンスを展開
$xconnectParams = @{
Path = "$PSScriptRoot\xconnect-xp0.json"
Package = "$PSScriptRoot\Sitecore 9.0.1 rev. 171219 (OnPrem)_xp0xconnect.scwdp.zip"
LicenseFile = "$PSScriptRoot\license.xml"
Sitename = $XConnectCollectionService
XConnectCert = $certParams.CertificateName
SqlDbPrefix = $prefix
SqlServer = $SqlServer
SqlAdminUser = $SqlAdminUser
SqlAdminPassword = $SqlAdminPassword
SolrCorePrefix = $prefix
SolrURL = $SolrUrl
}
Install-SitecoreConfiguration @xconnectParams

# Sitecore が参照する Solr Core のインストール
$solrParams = @{
Path = "$PSScriptRoot\sitecore-solr.json"
SolrUrl = $SolrUrl
SolrRoot = $SolrRoot
SolrService = $SolrService
CorePrefix = $prefix
}
Install-SitecoreConfiguration @solrParams

# Sitecore のインスタンスをインストール
$xconnectHostName = "habitat_xconnect.dev.local"
$sitecoreParams = @{
Path = "$PSScriptRoot\sitecore-XP0.json"
Package = "$PSScriptRoot\Sitecore 9.0.1 rev. 171219 (OnPrem)_single.scwdp.zip"
LicenseFile = "$PSScriptRoot\license.xml"
SqlDbPrefix = $prefix
SqlServer = $SqlServer
SqlAdminUser = $SqlAdminUser
SqlAdminPassword = $SqlAdminPassword
SolrCorePrefix = $prefix
SolrUrl = $SolrUrl
XConnectCert = $certParams.CertificateName
Sitename = $sitecoreSiteName
XConnectCollectionService = "https://$xconnectHostName"
}
Install-SitecoreConfiguration @sitecoreParams

0 comments on commit 8802ad2

Please sign in to comment.
You can’t perform that action at this time.