XOAPModuleTemplateDSC
October 9, 2023 ยท View on GitHub
This repository is a template that can be used as a starting point for creating new DSC modules and resources.
Code of Conduct
This project has adopted this Code of Conduct.
Contributing
Please check out common DSC Community contributing guidelines.
Change log
A full list of changes in each version can be found in the change log.
Documentation
This script is used to easily create new DSC modules and resources.
Prerequisites
Please install Plaster first and make sure it's present.
Install-Module Plaster
Import-Module Plaster
Create new DSC modules
Modules will be automatically created once you are creating a new DSC resource.
Create new DSC resources
DSC resources can easily be deployed via the invocation of
.\New-CompositeResource.ps1
with parameters
.\New-CompositeResource.ps1 -Module XOAPModuleTemplateDSC -Version 0.0.1 -Resource ScheduledTasks
The parameter list is as followed:
| Parameter | Description | Note |
|---|---|---|
| Module | Name of the outer module part | - |
| Version | Target version of the module | - |
| Ressource | The name of the ressource /config part | - |
Examples
You can review the Examples directory in the XOAPModuleTemplateDSC module for some general use scenarios for all the resources that are in the module.