-
Notifications
You must be signed in to change notification settings - Fork 226
Description
Resource proposal
To simplify the SqlSetup
resource and address some existing issues (#1637 in particular), I propose that the SqlSetup
resource be broken out into separate resources based on the setup Action
being performed.
A SqlSetupBase
class would hold the shared logic for setup tasks. But subclasses would be created to correlate with setup actions as listed below. The subclasses would also only allow users to set options relevant to that particular activity as set out in the Microsoft install docs here.
- Actions
- Install
- Uninstall
- PrepareImage
- CompleteImage
- Upgrade
- EditionUpgrade
- Repair
- RebuildDatabase
- InstallFailoverCluster
- PrepareFailoverCluster
- CompleteFailoverCluster
- AddNode
- RemoveNode
Proposed properties
All properties would be refactored from the existing SqlSetup MOF-based resource with common properties consolidated up to the parent SqlSetupBase
class.
Special considerations or limitations
The current functionality of SqlSetup uses active connections to get many settings. However, at least one action: PrepareFailoverCluster
does not result in a functioning SQL service. This should be taken into account when writing the shared functionality of SqlSetupBase
.