dsccommunity / dsccommunity/SqlServerDsc
SqlSetup: Installing Multiple Instances on same computer from same bits
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 385
- Forks
- 224
- PR merge metrics
- No merged PRs in 30d
Description
Is there a way to not have to copy a new set of the SQL bits for each instance of SQL being installed?
The process for installing an instance of SQL involves RoboCopying the SQL bits to a temp directory. I would like to be able to reuse that initial copy of the SQL bits over and over.
Windows OS: Windows Server 2012 R2
SQL Version: SQL 2012
PowerShell Version: 5.0.10514.6
Version of DSC module: 6.0.0.0 and dev
xSqlServerSetup installSqlServer
{
DependsOn=@('[xDisk]Drive1','[xDisk]Drive2')
InstanceName = $Node.InstanceName
SourcePath = $Node.SourcePath
SourceCredential = $Node.ServeShareCredentials
Features = $Node.Features
SetupCredential = $Node.SetupCredential
SAPwd = $Node.SACred
SQLSysAdminAccounts = $Node.AdminAccount
SecurityMode = "SQL"
InstanceDir = $Node.InstanceDriveLetter+":\MSSQL"
InstallSQLDataDir = $Node.DataDriveLetter+":\"+$Node.InstanceName+"\MSSQL"
SQLUserDBDir = $Node.DataDriveLetter+":\"+$Node.InstanceName+"\Data"
SQLUserDBLogDir = $Node.DataDriveLetter+":\"+$Node.InstanceName+"\Data"
SQLTempDBDir = $Node.DataDriveLetter+":\"+$Node.InstanceName+"\TempDB"
SQLTempDBLogDir = $Node.DataDriveLetter+":\"+$Node.InstanceName+"\TempDB"
SQLBackupDir = $Node.BackupDriveLetter+":\Backup"
ASDataDir = $Node.DataDriveLetter+":\"+$Node.InstanceName+"\OLAP\Data"
ASLogDir = $Node.DataDriveLetter+":\"+$Node.InstanceName+"\OLAP\Data"
ASBackupDir = $Node.DataDriveLetter+":\"+$Node.InstanceName+"\OLAP\Backup"
ASTempDir = $Node.InstanceDriveLetter+":\"+$Node.InstanceName+"\OLAP\Temp"
ASConfigDir = $Node.InstanceDriveLetter+":\"+$Node.InstanceName+"\OLAP\Config"
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the xSqlServerSetup resource and trace how SourcePath and the SQL bits are handled during installation. Confirm whether repeated instances can reuse the initial copied bits, and document or test the expected behavior for multiple SQL Server instances on the same computer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell, sql
- Domain
- databases, devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100