-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cluster: Adding parameter KeepDownedNodesInCluster to control whether…
… or not to remove nodes in downed state (#272)
- Loading branch information
Showing
7 changed files
with
148 additions
and
6 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
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
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
91 changes: 91 additions & 0 deletions
91
...es/Cluster/7-Cluster_JoinAdditionalNodeToFailoverClusterConfigAndDontEvictDownedNodes.ps1
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,91 @@ | ||
<#PSScriptInfo | ||
.VERSION 1.0.0 | ||
.GUID 593e1540-3778-4260-9389-1deceb419c8c | ||
.AUTHOR DSC Community | ||
.COMPANYNAME DSC Community | ||
.COPYRIGHT DSC Community contributors. All rights reserved. | ||
.TAGS DSCConfiguration | ||
.LICENSEURI https://github.com/dsccommunity/FailoverClusterDsc/blob/main/LICENSE | ||
.PROJECTURI https://github.com/dsccommunity/FailoverClusterDsc | ||
.ICONURI https://dsccommunity.org/images/DSC_Logo_300p.png | ||
.EXTERNALMODULEDEPENDENCIES | ||
.REQUIREDSCRIPTS | ||
.EXTERNALSCRIPTDEPENDENCIES | ||
.RELEASENOTES | ||
First version. | ||
.PRIVATEDATA 2016-Datacenter,2016-Datacenter-Server-Core | ||
#> | ||
|
||
#Requires -Module FailoverClusterDsc | ||
|
||
<# | ||
.DESCRIPTION | ||
This example shows how to add an additional node to the failover cluster without evicting cluster nodes in a down state. | ||
#> | ||
|
||
Configuration Cluster_JoinAdditionalNodeToFailoverClusterConfigAndDontEvictDownedNodes | ||
{ | ||
param | ||
( | ||
[Parameter(Mandatory = $true)] | ||
[PSCredential] | ||
$ActiveDirectoryAdministratorCredential | ||
) | ||
|
||
Import-DscResource -ModuleName FailoverClusterDsc | ||
|
||
Node localhost | ||
{ | ||
WindowsFeature AddFailoverFeature | ||
{ | ||
Ensure = 'Present' | ||
Name = 'Failover-clustering' | ||
} | ||
|
||
WindowsFeature AddRemoteServerAdministrationToolsClusteringPowerShellFeature | ||
{ | ||
Ensure = 'Present' | ||
Name = 'RSAT-Clustering-PowerShell' | ||
DependsOn = '[WindowsFeature]AddFailoverFeature' | ||
} | ||
|
||
WindowsFeature AddRemoteServerAdministrationToolsClusteringCmdInterfaceFeature | ||
{ | ||
Ensure = 'Present' | ||
Name = 'RSAT-Clustering-CmdInterface' | ||
DependsOn = '[WindowsFeature]AddRemoteServerAdministrationToolsClusteringPowerShellFeature' | ||
} | ||
|
||
WaitForCluster WaitForCluster | ||
{ | ||
Name = 'Cluster01' | ||
RetryIntervalSec = 10 | ||
RetryCount = 60 | ||
DependsOn = '[WindowsFeature]AddRemoteServerAdministrationToolsClusteringCmdInterfaceFeature' | ||
} | ||
|
||
Cluster JoinSecondNodeToCluster | ||
{ | ||
Name = 'Cluster01' | ||
StaticIPAddress = '192.168.100.20/24' | ||
DomainAdministratorCredential = $ActiveDirectoryAdministratorCredential | ||
KeepDownedNodesInCluster = $True | ||
DependsOn = '[WaitForCluster]WaitForCluster' | ||
} | ||
} | ||
} |
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