Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-1960

DSC - Use Invoke-DSCResource instead

    XMLWordPrintable

Details

    • New Feature
    • Status: Resolved
    • Normal
    • Resolution: Done
    • None
    • None
    • dsc

    Description

      Change out the usage of MOFs and calling powershell to just using Invoke-DscResource.

      Add in the MOF to set disable and enable refresh mode. Add in the wait for configuration to finish as well.

      This should also fix https://github.com/msutter/puppet-dsc/issues/1 when ordering is not explicitly used since there are no mof files generated.

      It might be good to split this one into a couple of tickets.

      QA

      Risk assessment: high
      Risk probability: high (any use of DSC module could expose issue)
      Risk severity: high (could completely block a user from using DSC module)
      Test layer: acceptance
      Acceptance test required (Any test case in FM-2622 can cover this ticket.)

      Attachments

        1. should_fail_multi.pp
          0.3 kB
        2. should_fail.pp
          0.1 kB
        3. should_pass_multi.pp
          0.3 kB
        4. should_pass.pp
          0.1 kB

        Issue Links

          Activity

            People

              ryan.gard Ryan Gard
              rob Rob Reynolds
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support