DSC
DSC copied to clipboard
Make `Include` resource use more like a composite resource
Summary of the new feature / enhancement
Currently, if you Include a nested configuration which has parameter, it has to be passed in as a separate file. Instead, we should allow the parameters to be passed in via the parent configuration.
Proposed technical implementation details (optional)
Example of how this could look:
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/config/document.json
resources:
- name: get os info
type: Microsoft.DSC/Include
properties:
configurationFile: osinfo_parameters.dsc.yaml
parameters:
osFamily: macOS
This can build off of https://github.com/PowerShell/DSC/pull/626 by adding configuration and parameters to the Kind enum that takes an object.
Deferring this as Bicep's module concept removes the need for this when using Bicep
I'm currently using the string function to get around this