PowerShell / DSC

This repo is for the DSC v3 project
MIT License
201 stars 29 forks source link

Enable `SkipGroup` reusing dsc.exe #301

Closed SteveL-MSFT closed 7 months ago

SteveL-MSFT commented 8 months ago

Summary of the new feature / enhancement

There are scenarios where you may want to reuse your config, but operations used with set would not apply to get or test. In those cases, you still want it defined in the config (instead of a separate config that is almost the same but different enough it becomes a process to keep the two in sync).

Proposed technical implementation details (optional)

The SkipGroup resource would accept a config doc with one additional property:

skipOn which would take a string array from possible values get, set, test, export

Alternatively, it could have a runOnlyOn accepting the same values. Not sure which is less confusing to users authoring and reading such a config.

The resource would emit an INFO (or maybe WARNING? although seems overkill, but more likely seen) messages on skipped resources.

This resource would not be part of the base DSC v3 package and needs to be installed separately,

SteveL-MSFT commented 7 months ago

With change in behavior for https://github.com/PowerShell/DSC/issues/302#issuecomment-1946081551 we no longer need this for now