Details
-
New Feature
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
dsc_lite 0.1
-
None
-
None
-
-
Windows
-
Windows Kanban
-
Needs Assessment
Description
When multiple versions of a dsc resource exist on the target system, version can be used to select the appropriate resource.
To implement this, add dsc_resource_module attribute to dsc type, remove dsc_resource_module_name. The dsc_resource_module property will be either a single string or a single hash, allowing the user to either specify a DSC Resource name or a DSC Resource Name and Version at the same time. The DSC Resource name can either be the name of the DSC Resource or a fully qualified path to the DSC Resource on the file system.
dsc {'foouser':
|
dsc_resource_name => 'User',
|
dsc_resource_module => {
|
name => 'PSDesiredStateConfiguration',
|
version => '1.8.0.0'
|
},
|
dsc_resource_properties => {
|
# properties
|
}
|
}
|
|
# same idea (makes version optional)
|
dsc {'foouser':
|
dsc_resource_name => 'User',
|
dsc_resource_module => 'PSDesiredStateConfiguration',
|
dsc_resource_properties => {
|
# properties
|
}
|
}
|
Attachments
Issue Links
- is duplicated by
-
MODULES-5841 DSC_lite: Module path parameter for generic DSC resource type
-
- Resolved
-
- relates to
-
MODULES-6450 dsc_lite: Add Beaker test for installing DSC resources via module
-
- Closed
-