-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added scripts for generating scwdp files and installing.
- Loading branch information
1 parent
54aebde
commit a940e3d
Showing
4 changed files
with
187 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#msdeploy -verb:sync -source:package=%CD%\test.scwdp.zip -dest:archiveDir=%CD%\output -setParam:X=TESTVALUE | ||
|
||
# The Prefix that will be used on SOLR, Website and Database instances. | ||
$Prefix = "sc930" | ||
# The Password for the Sitecore Admin User. This will be regenerated if left on the default. | ||
$SitecoreAdminPassword = "b" | ||
# The root folder with the license file and WDP files. | ||
$SCInstallRoot = "C:\Sitecore\" | ||
# The Sitecore site instance name. | ||
$SitecoreSiteName = "$prefix.sc" | ||
# A SQL user with sysadmin privileges. | ||
$SqlAdminUser = "sa" | ||
# The password for $SQLAdminUser. | ||
$SqlAdminPassword = "12345" | ||
# The path to the Sitecore Package to Deploy. | ||
$Package = (Get-ChildItem "$SCInstallRoot\Sitecore.PowerShell.Extensions-6.*.scwdp.zip").FullName | ||
$ModuleDatabase = "mastercore" | ||
|
||
# Install XP0 via combined partials file. | ||
$singleDeveloperParams = @{ | ||
Path = "$SCInstallRoot\install-module.json" | ||
Package = $Package | ||
SqlServer = $SqlServer | ||
SqlAdminUser = $SqlAdminUser | ||
SqlAdminPassword = $SqlAdminPassword | ||
DatabasePrefix = $Prefix | ||
Sitename = $SitecoreSiteName | ||
ModuleDatabase = $ModuleDatabase | ||
} | ||
|
||
Push-Location $SCInstallRoot | ||
|
||
Install-SitecoreConfiguration @singleDeveloperParams *>&1 | Tee-Object XP0-SingleDeveloper.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
{ | ||
"Parameters": { | ||
"Package": { | ||
"Type": "string", | ||
"DefaultValue": "", | ||
"Description": "The path to the SCWDP to deploy." | ||
}, | ||
"SiteName": { | ||
"Type": "string", | ||
"DefaultValue": "Sitecore", | ||
"Description": "The name of the site to be deployed." | ||
}, | ||
"DatabasePrefix": { | ||
"Type": "string", | ||
"DefaultValue": "", | ||
"Description": "SQL DB Prefix" | ||
}, | ||
"SqlAdminUser": { | ||
"Type": "string", | ||
"DefaultValue": "sa", | ||
"Description": "The Sql admin user account to use when installing databases." | ||
}, | ||
"SqlAdminPassword": { | ||
"Type": "string", | ||
"DefaultValue": "12345", | ||
"Description": "The Sql admin password to use when installing databases." | ||
}, | ||
"SqlServer": { | ||
"Type": "string", | ||
"DefaultValue": ".\\SQLSERVER", | ||
"Description": "The Sql Server where databases will be installed." | ||
}, | ||
"ModuleDatabase": { | ||
"Type": "string", | ||
"DefaultValue": "", | ||
"Description": "Databases required for module install: ('master','mastercore','core')" | ||
} | ||
}, | ||
"Variables": { | ||
"Sql.Database.Core": "[concat(parameter('DatabasePrefix'), '_Core')]", | ||
"Sql.Database.Master": "[concat(parameter('DatabasePrefix'), '_Master')]", | ||
"Sql.Core.ConnectionString": "[SqlConnectionString(parameter('SqlServer'),variable('Sql.Database.Core'), parameter('SqlAdminUser'), parameter('SqlAdminPassword'))]", | ||
"Sql.Master.ConnectionString": "[SqlConnectionString(parameter('SqlServer'),variable('Sql.Database.Master'), parameter('SqlAdminUser'), parameter('SqlAdminPassword'))]", | ||
"Skip.Master": "[not(equal(parameter('ModuleDatabase'), 'master'))]", | ||
"Skip.MasterCore": "[not(equal(parameter('ModuleDatabase'), 'mastercore'))]", | ||
"Skip.Core": "[not(equal(parameter('ModuleDatabase'), 'core'))]", | ||
"Skip.None":"[not(equal(parameter('ModuleDatabase'), 'none'))]" | ||
}, | ||
"Settings": { | ||
"AutoRegisterExtensions": true | ||
}, | ||
"Tasks": { | ||
"InstallWDPModuleNoDB": { | ||
"Type": "WebDeploy", | ||
"Params": { | ||
"Verb": "Sync", | ||
"Arguments": { | ||
"Source": { | ||
"Package": "[resolvepath(parameter('Package'))]" | ||
}, | ||
"Dest": "Auto", | ||
"EnableRule": "DoNotDeleteRule", | ||
"SetParam": [ | ||
{ | ||
"Name": "IIS Web Application name", | ||
"Value": "[parameter('SiteName')]" | ||
} | ||
] | ||
} | ||
}, | ||
"Skip": "[variable('Skip.None')]" | ||
}, | ||
"InstallWDPModuleMasterCore": { | ||
"Type": "WebDeploy", | ||
"Params": { | ||
"Verb": "Sync", | ||
"Arguments": { | ||
"Source": { | ||
"Package": "[resolvepath(parameter('Package'))]" | ||
}, | ||
"Dest": "Auto", | ||
"EnableRule": "DoNotDeleteRule", | ||
"SetParam": [ | ||
{ | ||
"Name": "Application Path", | ||
"Value": "[parameter('SiteName')]" | ||
}, | ||
{ | ||
"Name": "Core Admin Connection String", | ||
"Value": "[variable('Sql.Core.ConnectionString')]" | ||
}, | ||
{ | ||
"Name": "Master Admin Connection String", | ||
"Value": "[variable('Sql.Master.ConnectionString')]" | ||
} | ||
] | ||
} | ||
}, | ||
"Skip": "[equal(variable('Skip.MasterCore'),'True')]" | ||
}, | ||
"InstallWDPModuleMaster": { | ||
"Type": "WebDeploy", | ||
"Params": { | ||
"Verb": "Sync", | ||
"Arguments": { | ||
"Source": { | ||
"Package": "[resolvepath(parameter('Package'))]" | ||
}, | ||
"Dest": "Auto", | ||
"EnableRule": "DoNotDeleteRule", | ||
"SetParam": [ | ||
{ | ||
"Name": "Application Path", | ||
"Value": "[parameter('SiteName')]" | ||
}, | ||
{ | ||
"Name": "Master Admin Connection String", | ||
"Value": "[variable('Sql.Master.ConnectionString')]" | ||
} | ||
] | ||
} | ||
}, | ||
"Skip": "[equal(variable('Skip.Master'),'True')]" | ||
}, | ||
"InstallWDPModuleCore": { | ||
"Type": "WebDeploy", | ||
"Params": { | ||
"Verb": "Sync", | ||
"Arguments": { | ||
"Source": { | ||
"Package": "[resolvepath(parameter('Package'))]" | ||
}, | ||
"Dest": "Auto", | ||
"EnableRule": "DoNotDeleteRule", | ||
"SetParam": [ | ||
{ | ||
"Name": "Application Path", | ||
"Value": "[parameter('SiteName')]" | ||
}, | ||
{ | ||
"Name": "Core Admin Connection String", | ||
"Value": "[variable('Sql.Core.ConnectionString')]" | ||
} | ||
] | ||
} | ||
}, | ||
"Skip": "[equal(variable('Skip.Core'),'True')]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters