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

Create new exec provider called pwsh in the PowerShell module

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: powershell
    • Labels:
    • Template:
    • Acceptance Criteria:
      • A new provider called pwsh is created
      • Only works on Windows
      • Minimal acceptance tests
      • Documentation not required
    • Team:
      Windows
    • Story Points:
      1
    • Sprint:
      Windows 2018-12-19
    • QA Risk Assessment:
      Needs Assessment

      Description

      In order to support PowerShell core we need to add a new provider to the Puppet PowerShell module. This provider will be called pwsh, for example;

      exec { 'do something':
         command  => 'Write-Host $PSVersionTable',
         provider => pwsh,
         require  => File['testfile'],
      }
      

      Initially;

      This provider will only execute the pwsh.exe command on Windows. Later work will add cross platform, searching for the binary and PowerShell manager support.

      This issue will also add some acceptance tests to test basic functionality. Later work will copy the entire existing acceptance tests to the pwsh provider.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.lombardi Michael Lombardi
              Reporter:
              glenn.sarti Glenn Sarti
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support