-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SqlServerDsc: Try move ResourceBase
into a seperate module so if can easily be reused by other modules
#1790
Labels
enhancement
The issue is an enhancement request.
Comments
johlju
added
enhancement
The issue is an enhancement request.
help wanted
The issue is up for grabs for anyone in the community.
labels
Nov 5, 2022
Some commands that should be public should be moved to DscResource.Common: |
Verified on a lab server that there will be no confliict between modules using a module that contain Using the configuration: Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
$SqlAdministratorCredential
)
Import-DscResource -ModuleName ComputerManagementDsc
Import-DscResource -ModuleName SqlServerDsc
node localhost
{
PSResourceRepository 'Register PSGallery PSRepository'
{
Name = 'PSGallery'
Ensure = 'Present'
Default = $true
}
SqlAudit FileAudit_Server
{
Ensure = 'Absent'
ServerName = 'localhost'
InstanceName = 'SQL2022'
Name = 'FileAudit'
Credential = $SqlAdministratorCredential
}
}
} It produced this output - not the Verbose statement is the important part, I removed verbose output that is not relevant. We can see that
|
johlju
added
in progress
The issue is being actively worked on by someone.
and removed
help wanted
The issue is up for grabs for anyone in the community.
labels
Dec 29, 2022
This was referenced Dec 30, 2022
johlju
added a commit
that referenced
this issue
Jan 3, 2023
- SqlServerDsc - Class-based resources now uses the parent class `ResourceBase` from the module _DscResource.Base_ (issue #1790). - Removed private function `Test-ResourceDscPropertyIsAssigned` and `Test-ResourceHasDscProperty`. Both are replaced by `Test-DscProperty` which is now part of the module _DscResource.Common_. - Removed private function `Get-DscProperty`. It is replaced by `Get-DscProperty` which is now part of the module _DscResource.Common_. - The class `ResourceBase` and `Reason` has been removed, they are now part of the module _DscResource.Base_. - The enum `Ensure` has been removed, is is now part of the module _DscResource.Base_. - The private functions that the class `ResourceBase` depended on has been moved to the module _DscResource.Base_. - `ConvertFrom-CompareResult` - `ConvertTo-Reason` - `Get-ClassName` - `Get-LocalizedDataRecursive`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source files affected and should be moved to separate module.
The text was updated successfully, but these errors were encountered: