guitarrapc / GraniResource

PowerShell Desired State Configuration Resources for real production workload.
https://www.powershellgallery.com/packages/GraniResource
MIT License
44 stars 8 forks source link

Add Grani_ScriptOnOSVersion #82

Closed guitarrapc closed 6 years ago

guitarrapc commented 6 years ago

https://github.com/guitarrapc/GraniResource/issues/83

Description

This PR enable you to run Script depends on OSVersion/Platform.

Motivation

Currently there are no PowerShell DSC Resources for to handle OSVersion and run specific Resource or Script. 1st I've imagine just provide dependson resource to force run DependsOn, but immediately resigned, because DependsOn resource will run only when This resource Test was False. It means this resource result will never become true.

So I've created much more general purpose Script resource. Script resource's Test will run on PULL Server so the Client OS Version is not reflect on mof file. But this resource will handle OS Version on Client, so that you can handle script execution.

TODO