puppetlabs / Puppet.Dsc

Convert DSC resources into Puppet Resource API types and providers
https://www.powershellgallery.com/packages/Puppet.Dsc
Apache License 2.0
9 stars 12 forks source link

(CAT-1869) - Add dsc_timeout param to all dsc resources #290

Closed jordanbreen28 closed 3 months ago

jordanbreen28 commented 4 months ago

Summary

This PR adds the dsc_timeout param to all dsc resources generated by Puppet.Dsc. This allows the user to set a configurable amount of time, in seconds, in which puppet will wait for the dsc invocation to finish.

If the timeout passes, and DSC has not returned, the powershell process defined in puppetlabs-pwshlib's dsc_base_provider, will quit the operation and move on.

Additional Context

Related Issues (if any)

Mention any related issues or pull requests.

Checklist

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 19.70%. Comparing base (057dfee) to head (e37068d).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #290 +/- ## ======================================= Coverage 19.70% 19.70% ======================================= Files 47 47 Lines 868 868 ======================================= Hits 171 171 Misses 697 697 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.