Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-1804

path list for commands

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      A way to select the path prefix that is used for commands.

      body common control
      {
      path => { "/usr/bin", "/usr/local/sbin" }; # checked in this order
      }
      

      The path list should apply to the same promises as the *_returncodes attribute: https://docs.cfengine.com/docs/3.5/reference-promise-types.html#kept_returncodes

      bundle agent test
      {
      commands:
        "cmd1"; # would run if in /usr/bin or /usr/local/sbin
      
        "/opt/bin/cmd2";  # would only run if in /opt/bin
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                a10003 Eystein Maloy Stenberg
              • Votes:
                2 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel