Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-448

Facter::Core::Execution.execute

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Do
    • Affects Version/s: FACT 2.1.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      All

    • Template:
    • UX Priority:
      Major

      Description

      Maybe execute should have a on error extra parameter e.g.:
      Param 1
      Error Reporting to logs, can calling code
      *ignore all exit status errors and can not execute errors (i.e. behavior like exec)
      *ignore all exit status errors and report can not execute errors
      *if can execute report non-0 exit status
      *report any issues
      Param 2
      Value to set the fact to on error
      Param 3
      Value to set the fact to when no error and no output is return.
      Param 4 Command etc

      Ensure factor aborts on out of memory errors or similar, and these facts are not sent back to puppet master. Last thing we want is when a system is broken for puppet to produce a different catalog.

      It's important if this function is going to be changed, that it is changed before its starts being used.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              damona Damon Atkins
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support