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

Create new exec provider called pwsh in the PowerShell module

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • None
    • powershell
      • A new provider called pwsh is created
      • Only works on Windows
      • Minimal acceptance tests
      • Documentation not required
    • Windows
    • 1
    • Windows 2018-12-19
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support