Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-885

Add a function which runs an external process

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: SERVER 2.3.0
    • Component/s: None
    • Labels:
    • Template:
    • Sub-team:
    • Story Points:
      1
    • Sprint:
      Server Jade 2016-01-13, Server Jade 2016-01-27

      Description

      Add a function which executes a file at a given filesystem path. This will be used as the basis of Puppet Server's implementation of the VersionedCodeService: users will specify a path in configuration with a script which will return the code ID.

      The initial version of this function should return the STDOUT of the process as String. Streaming will be investigated/implemented in a future version.

      There is already some prior art of this in Puppet Server, primarily in the "execution stub" provided to Puppet. Look in to this code, see what is reusable.

      Also, figure out what contract around error handling is. Do we care about STDERR? Process exit code?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              matthaus Past Haus
              Reporter:
              chris Chris Price
              QA Contact:
              Erik Dasher Erik Dasher
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support