Skip to content

Commit f2621d5

Browse files
authored
Major update (#34)
- Migrated the resource to Sampler - Fixed issues
1 parent 09a2d9a commit f2621d5

File tree

71 files changed

+5970
-2282
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+5970
-2282
lines changed

.gitattributes

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1+
# Needed for publishing of examples, build worker defaults to core.autocrlf=input.
2+
* text eol=crlf
3+
4+
# Ensure any exe files are treated as binary
5+
*.exe binary
6+
*.jpg binary
7+
*.xl* binary
8+
*.pfx binary
19
*.pssc text=auto
210
*.pssc diff
311
*.psrc text=auto
4-
*.psrc diff
12+
*.psrc diff

.github/CONTRIBUTING.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
If you'd like to contribute to this project, please review the [Contribution Guidelines](https://github.com/PowerShell/DscResources/blob/master/CONTRIBUTING.md).

.github/ISSUE_TEMPLATE/General.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: General question or documentation update
3+
about: If you have a general question or documentation update suggestion around the resource module.
4+
---
5+
<!--
6+
Your feedback and support is greatly appreciated, thanks for contributing!
7+
-->
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
name: Problem with a resource
3+
about: If you have a problem, bug, or enhancement with a resource in this resource module.
4+
---
5+
<!--
6+
Your feedback and support is greatly appreciated, thanks for contributing!
7+
8+
ISSUE TITLE:
9+
Please prefix the issue title with the resource name, e.g.
10+
'ResourceName: Short description of my issue'
11+
12+
ISSUE DESCRIPTION (this template):
13+
Please provide information regarding your issue under each header below.
14+
Write N/A under any headers that do not apply to your issue, or if the
15+
information is not available.
16+
17+
NOTE! Sensitive information should be obfuscated.
18+
19+
PLEASE KEEP THE HEADERS.
20+
21+
You may remove this comment block, and the other comment blocks,
22+
but please keep the headers.
23+
-->
24+
#### Details of the scenario you tried and the problem that is occurring
25+
26+
#### Verbose logs showing the problem
27+
28+
#### Suggested solution to the issue
29+
30+
#### The DSC configuration that is used to reproduce the issue (as detailed as possible)
31+
```powershell
32+
# insert configuration here
33+
```
34+
35+
#### The operating system the target node is running
36+
<!--
37+
Please provide as much as possible about the target node, for example
38+
edition, version, build and language.
39+
On OS with WMF 5.1 the following command can help get this information.
40+
41+
Get-ComputerInfo -Property @(
42+
'OsName',
43+
'OsOperatingSystemSKU',
44+
'OSArchitecture',
45+
'WindowsVersion',
46+
'WindowsBuildLabEx',
47+
'OsLanguage',
48+
'OsMuiLanguages')
49+
-->
50+
51+
#### Version and build of PowerShell the target node is running
52+
<!--
53+
To help with this information, please run this command:
54+
$PSVersionTable
55+
-->
56+
57+
#### Version of the DSC module that was used
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: New resource proposal
3+
about: If you have a new resource proposal that you think should be added to this resource module.
4+
---
5+
<!--
6+
Thank you for contributing and making this resource module better!
7+
8+
ISSUE TITLE:
9+
Please prefix the issue title with a proposed resource name,
10+
e.g. 'NewResourceName: New resource proposal'
11+
12+
ISSUE DESCRIPTION (this template):
13+
Please propose the new resource under each header below.
14+
15+
PLEASE KEEP THE HEADERS, but you may remove this comment block.
16+
-->
17+
### Description
18+
19+
### Proposed properties
20+
21+
### Special considerations or limitations

.github/PULL_REQUEST_TEMPLATE.md

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<!--
2+
Thanks for submitting a Pull Request (PR) to this project.
3+
Your contribution to this project is greatly appreciated!
4+
5+
Please prefix the PR title with the resource name,
6+
e.g. 'ResourceName: My short description'.
7+
If this is a breaking change, then also prefix the PR title
8+
with 'BREAKING CHANGE:',
9+
e.g. 'BREAKING CHANGE: ResourceName: My short description'.
10+
11+
You may remove this comment block, and the other comment blocks, but please
12+
keep the headers and the task list.
13+
-->
14+
#### Pull Request (PR) description
15+
<!--
16+
Replace this comment block with a description of your PR.
17+
-->
18+
19+
#### This Pull Request (PR) fixes the following issues
20+
<!--
21+
If this PR does not fix an open issue, replace this comment block with None.
22+
If this PR resolves one or more open issues, replace this comment block with
23+
a list the issues using a GitHub closing keyword, e.g.:
24+
- Fixes #123
25+
- Fixes #124
26+
-->
27+
28+
#### Task list
29+
<!--
30+
To aid community reviewers in reviewing and merging your PR, please take
31+
the time to run through the below checklist and make sure your PR has
32+
everything updated as required.
33+
34+
Change to [x] for each task in the task list that applies to your PR.
35+
For those task that don't apply to you PR, leave those as is.
36+
-->
37+
- [ ] Added an entry under the Unreleased section of the change log in the CHANGELOG.md.
38+
Entry should say what was changed, and how that affects users (if applicable).
39+
- [ ] Resource documentation added/updated in README.md in resource folder.
40+
- [ ] Resource parameter descriptions added/updated in schema.mof
41+
and comment-based help.
42+
- [ ] Comment-based help added/updated.
43+
- [ ] Localization strings added/updated in all localization files as appropriate.
44+
- [ ] Examples appropriately added/updated.
45+
- [ ] Unit tests added/updated. See [DSC Resource Testing Guidelines](https://github.com/PowerShell/DscResources/blob/master/TestsGuidelines.md).
46+
- [ ] Integration tests added/updated (where possible). See [DSC Resource Testing Guidelines](https://github.com/PowerShell/DscResources/blob/master/TestsGuidelines.md).
47+
- [ ] New/changed code adheres to [DSC Resource Style Guidelines](https://github.com/PowerShell/DscResources/blob/master/StyleGuidelines.md) and [Best Practices](https://github.com/PowerShell/DscResources/blob/master/BestPractices.md).

.github/stale.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Configuration for probot-stale - https://github.com/probot/stale
2+
3+
limitPerRun: 30
4+
5+
pulls:
6+
daysUntilStale: 14
7+
daysUntilClose: false
8+
exemptProjects: true
9+
exemptMilestones: true
10+
staleLabel: abandoned
11+
exemptLabels:
12+
- needs review
13+
- on hold
14+
- waiting for CLA pass
15+
16+
markComment: >
17+
Labeling this pull request (PR) as abandoned since it has gone 14 days or more
18+
since the last update. An abandoned PR can be continued by another contributor.
19+
The abandoned label will be removed if work on this PR is taken up again.
20+
21+
issues:
22+
daysUntilStale: 30
23+
daysUntilClose: 40
24+
exemptProjects: true
25+
exemptMilestones: true
26+
staleLabel: stale
27+
exemptLabels:
28+
- bug
29+
- enhancement
30+
- tests
31+
- documentation
32+
- resource proposal
33+
- on hold
34+
35+
markComment: >
36+
This issue has been automatically marked as stale because
37+
it has not had activity from the community in the last 30 days. It will be
38+
closed if no further activity occurs within 10 days. If the issue is labelled
39+
with any of the work labels (e.g bug, enhancement, documentation, or tests)
40+
then the issue will not auto-close.
41+
42+
closeComment: >
43+
This issue has been automatically closed because it is has not had activity
44+
from the community in the last 40 days.

.gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
output/
2+
3+
**.bak
4+
*.local.*
5+
!**/README.md
6+
.kitchen/
7+
8+
*.suo
9+
*.user
10+
*.coverage
11+
.vs
12+
.psproj
13+
.sln
14+
markdownissues.txt
15+
node_modules
16+
package-lock.json

.markdownlint.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"default": true,
3+
"MD029": {
4+
"style": "one"
5+
},
6+
"MD013": true,
7+
"MD024": false,
8+
"MD034": false,
9+
"no-hard-tabs": true
10+
}

.vscode/analyzersettings.psd1

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
@{
2+
CustomRulePath = '.\output\RequiredModules\DscResource.AnalyzerRules'
3+
includeDefaultRules = $true
4+
IncludeRules = @(
5+
# DSC Resource Kit style guideline rules.
6+
'PSAvoidDefaultValueForMandatoryParameter',
7+
'PSAvoidDefaultValueSwitchParameter',
8+
'PSAvoidInvokingEmptyMembers',
9+
'PSAvoidNullOrEmptyHelpMessageAttribute',
10+
'PSAvoidUsingCmdletAliases',
11+
'PSAvoidUsingComputerNameHardcoded',
12+
'PSAvoidUsingDeprecatedManifestFields',
13+
'PSAvoidUsingEmptyCatchBlock',
14+
'PSAvoidUsingInvokeExpression',
15+
'PSAvoidUsingPositionalParameters',
16+
'PSAvoidShouldContinueWithoutForce',
17+
'PSAvoidUsingWMICmdlet',
18+
'PSAvoidUsingWriteHost',
19+
'PSDSCReturnCorrectTypesForDSCFunctions',
20+
'PSDSCStandardDSCFunctionsInResource',
21+
'PSDSCUseIdenticalMandatoryParametersForDSC',
22+
'PSDSCUseIdenticalParametersForDSC',
23+
'PSMisleadingBacktick',
24+
'PSMissingModuleManifestField',
25+
'PSPossibleIncorrectComparisonWithNull',
26+
'PSProvideCommentHelp',
27+
'PSReservedCmdletChar',
28+
'PSReservedParams',
29+
'PSUseApprovedVerbs',
30+
'PSUseCmdletCorrectly',
31+
'PSUseOutputTypeCorrectly',
32+
'PSAvoidGlobalVars',
33+
'PSAvoidUsingConvertToSecureStringWithPlainText',
34+
'PSAvoidUsingPlainTextForPassword',
35+
'PSAvoidUsingUsernameAndPasswordParams',
36+
'PSDSCUseVerboseMessageInDSCResource',
37+
'PSShouldProcess',
38+
'PSUseDeclaredVarsMoreThanAssignments',
39+
'PSUsePSCredentialType',
40+
41+
'Measure-*'
42+
)
43+
44+
}

.vscode/launch.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "PowerShell Launch Current File",
9+
"type": "PowerShell",
10+
"request": "launch",
11+
"script": "${file}",
12+
"cwd": "${file}"
13+
},
14+
{
15+
"name": "PowerShell: Interactive Session",
16+
"type": "PowerShell",
17+
"request": "launch",
18+
"cwd": ""
19+
}
20+
]
21+
}

.vscode/settings.json

+33-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,38 @@
11
{
2-
"powershell.codeFormatting.openBraceOnSameLine": false,
3-
"powershell.codeFormatting.newLineAfterOpenBrace": false,
4-
"powershell.codeFormatting.newLineAfterCloseBrace": false,
5-
"powershell.codeFormatting.preset": "Stroustrup",
6-
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
2+
"powershell.codeFormatting.newLineAfterOpenBrace": true,
3+
"powershell.codeFormatting.newLineAfterCloseBrace": true,
74
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
5+
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
86
"powershell.codeFormatting.whitespaceAroundOperator": true,
97
"powershell.codeFormatting.whitespaceAfterSeparator": true,
10-
"powershell.codeFormatting.ignoreOneLineBlock": true,
11-
"editor.formatOnSave": true
8+
"powershell.codeFormatting.ignoreOneLineBlock": false,
9+
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationAfterEveryPipeline",
10+
"powershell.codeFormatting.preset": "Custom",
11+
"powershell.codeFormatting.alignPropertyValuePairs": true,
12+
"files.trimTrailingWhitespace": true,
13+
"files.insertFinalNewline": true,
14+
"powershell.scriptAnalysis.settingsPath": ".vscode\\analyzersettings.psd1",
15+
"powershell.scriptAnalysis.enable": true,
16+
"files.associations": {
17+
"*.ps1xml": "xml"
18+
},
19+
"cSpell.words": [
20+
"COMPANYNAME",
21+
"ICONURI",
22+
"LICENSEURI",
23+
"PROJECTURI",
24+
"RELEASENOTES",
25+
"buildhelpers",
26+
"endregion",
27+
"gitversion",
28+
"icontains",
29+
"keepachangelog",
30+
"notin",
31+
"pscmdlet",
32+
"steppable"
33+
],
34+
"[markdown]": {
35+
"files.trimTrailingWhitespace": false,
36+
"files.encoding": "utf8"
37+
}
1238
}

0 commit comments

Comments
 (0)