Skip to content

Sql<Setup Action>: New resource proposal #1781

@Sudman1

Description

@Sudman1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedThe issue is up for grabs for anyone in the community.resource proposalThe issue is proposing a new resource in the resource module.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions