forked from dsccommunity/ActiveDirectoryDsc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- BREAKING CHANGE: Refactored the resource to handle timeout better and more correctly wait for a specific amount, and at the same time make the resource more intuitive to use. This change has replaced parameters in the resource (issue dsccommunity#343). - Now the resource can use built-in `PsDscRunAsCredential` instead of specifying the `Credential` parameter (issue dsccommunity#367). - New parameter `SiteName` can be used to wait for a domain controller in a specific site in the domain.
Showing
6 changed files
with
327 additions
and
167 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
11 changes: 6 additions & 5 deletions
11
DSCResources/MSFT_WaitForADDomain/MSFT_WaitForADDomain.schema.mof
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
[ClassVersion("1.0.1.0"), FriendlyName("WaitForADDomain")] | ||
class MSFT_WaitForADDomain : OMI_BaseResource | ||
{ | ||
[Key, Description("The name of the Active Directory domain to wait for.")] String DomainName; | ||
[Write, Description("The user account credentials to use to perform this task."), EmbeddedInstance("MSFT_Credential")] String DomainUserCredential; | ||
[Write, Description("The interval in seconds between retry attempts. Default value is 60.")] UInt64 RetryIntervalSec; | ||
[Write, Description("The number of retries before failing. Default value is 10.")] UInt32 RetryCount; | ||
[Write, Description("The number of times to reboot after failing and then restart retrying. Default value is 0 (zero).")] UInt32 RebootRetryCount; | ||
[Key, Description("Specifies the fully qualified domain name to wait for.")] String DomainName; | ||
[Write, Description("Specifies the site in the domain where to look for a domain controller.")] String SiteName; | ||
[Write, Description("Specifies the credentials that are used when accessing the domain, unless the built-in PsDscRunAsCredential is used."), EmbeddedInstance("MSFT_Credential")] String Credential; | ||
[Write, Description("Specifies the timeout in seconds that the resource will wait for the domain to be accessible. Default value is 300 seconds.")] UInt64 WaitTimeout; | ||
[Write, Description("Specifies the number of times the node will be reboot in an effort to connect to the domain.")] UInt32 RebootCount; | ||
[Read, Description("Returns a value indicating if a domain controller was found.")] Boolean IsAvailable; | ||
}; |
10 changes: 6 additions & 4 deletions
10
DSCResources/MSFT_WaitForADDomain/en-US/MSFT_WaitForADDomain.strings.psd1
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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
# culture='en-US' | ||
ConvertFrom-StringData @' | ||
GetDomain = Getting Domain '{0}'. (WFADD0001) | ||
SearchDomainController = Searching for a domain controller in the domain '{0}'. (WFADD0001) | ||
DomainNotFoundRetrying = Domain '{0}' not found. Will retry again after {1} seconds. (WFADD0002) | ||
DomainNotFoundRebooting = Domain '{0}' not found after {1} attempts with {2} sec interval. Rebooting. Reboot attempt number {3} of {4}. (WFADD0003) | ||
DomainNotFoundAfterReboot = Domain '{0}' NOT found after {1} Reboot attempts. (WFADD0004) | ||
DomainNotFoundAfterRetry = Domain '{0}' NOT found after {1} attempts. (WFADD0005) | ||
DomainInDesiredState = Domain '{0}' is in the desired state. (WFADD0006) | ||
DomainNotInDesiredState = Domain '{0}' is not in the desired state. (WFADD0007) | ||
CheckDomain = Checking for domain '{0}'. (WFADD0008) | ||
FoundDomain = Found domain '{0}'. (WFADD0009) | ||
DomainNotFound = Domain '{0}' not found. (WFADD0010) | ||
FoundDomainController = Found domain controller. (WFADD0009) | ||
NoFoundDomainController = No domain controller was found. (WFADD0010) | ||
ImpersonatingCredentials = Impersonating the credentials '{0}' when looking for a domain controller. (WFADD0011) | ||
SearchInSiteOnly = Limiting the search scope for a domain controller to the site '{0}'. (WFADD0012) | ||
TestConfiguration = Determining the current state of the Active Directory domain '{0}'. (WFADD0013) | ||
'@ |
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