Uploaded image for project: 'Puppet Task Runner'
  1. Puppet Task Runner
  2. BOLT-208

WinRM node should run arbitrary whitelisted scripts by extension, as it does for tasks

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: BOLT 0.7.0
    • Fix Version/s: BOLT 0.8.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Sprint:
      Tasks Kanban
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Hide
      Bolt previously only treated WinRM script execution as PowerShell code. To behave more like task execution, scripts now use the same file extension based whitelist to determine which executable should run a given file type. Currently, this allows for .rb scripts to be run with Ruby, .pp files to be run with Puppet, and .ps1 files to be run with PowerShell.
      Show
      Bolt previously only treated WinRM script execution as PowerShell code. To behave more like task execution, scripts now use the same file extension based whitelist to determine which executable should run a given file type. Currently, this allows for .rb scripts to be run with Ruby, .pp files to be run with Puppet, and .ps1 files to be run with PowerShell.
    • QA Risk Assessment:
      Needs Assessment

      Description

      At this time, there are 3 different execution models in Bolt for WinRM:

      • command - runs PowerShell code directly in the connected WinRM instance - note that for separate Bolt CLI invocations that each command appears to run isolated from one another (presumably the WinRM host creates runspaces / clears state)
      • script - runs a PowerShell script by invoking powershell.exe
      • task - runs arbitrary Ruby based tasks, PowerShell tasks, and Puppet files - using a file extension based registry

      Script is currently hard-coded to treat all incoming scripts as PowerShell, even they may be Ruby, Python or other scripts.

      This ticket should make script execution behave like task execution.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ethan Ethan Brown
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support