dsccommunity / FailoverClusterDsc

This module contains DSC resources for deployment and configuration of Windows Server Failover Cluster.
MIT License
60 stars 54 forks source link

Cluster: Logic to remove a failover cluster does not exist #244

Open powertim opened 4 years ago

powertim commented 4 years ago

Details of the scenario you tried and the problem that is occurring

This resource should be able to add or remove a failover cluster. Currently it only supports changing the name, role and the metric for an already present cluster.

The schema should add at least an Ensure parameter to be able to add and remove a cluster.

Verbose logs showing the problem

N/A

Suggested solution to the issue

 xCluster RemoveCluster
        {
            Name                          = 'Cluster01'
            Ensure                        = 'Absent'
            DomainAdministratorCredential = $ActiveDirectoryAdministratorCredential
            DependsOn                     = '[WindowsFeature]AddRemoteServerAdministrationToolsClusteringCmdInterfaceFeature'
        }

The DSC configuration that is used to reproduce the issue (as detailed as possible)

N/A

The operating system the target node is running

N/A

Version and build of PowerShell the target node is running

N/A

Version of the DSC module that was used

1.14.1

johlju commented 4 years ago

Would be a great addition. Happy to see a PR for this.