This repository is a template that can be used as a starting point for creating new DSC modules and resources.
This project has adopted this Code of Conduct.
Please check out common DSC Community contributing guidelines.
A full list of changes in each version can be found in the Releases.
This script is used to easily create new DSC modules and resources.
Be sure that the following DSC modules are installed on your system:
- ModuleName (x.x.x)
XOAP_DSCResource [String] #ResourceName
{
[DependsOn = [String[]]]
[PsDscRunAsCredential = [PSCredential]]
}
You can review the Examples directory in the XOAPModuleTemplateDSC module for some general usage scenarios for all the resources that are in the module.
To implement the Module Template DSC module, add the following resources to your DSC configuration and adjust the parameters accordingly:
configuration 'XOAP_DSCResource'
{
Import-DscResource -ModuleName 'XOAPModuleTemplateDSC' -Name 'XOAP_DSCResource' -ModuleVersion '0.0.1'
XOAP_DSCResource 'Example'
{
DependsOn = @('[String[]]')
PsDscRunAsCredential = [PSCredential]
}
}
XOAP_DSCResource
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 'DSCResource'