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

Hook to run a bundle when abortclasses is triggered.

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Open
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cf-agent
    • Labels:
      None

      Description

      It would be nice if I could run a bundle if a bundle is aborted.

      abortclasses in body executor control defines a list of regular expressions that should cause cf-agent to abort execution if a class matching one of the regular expressions is defined.

      • It wold be nice to be able to know from within the bundle being run after aborting which bundle aborted
      • It wold be nice to be able to know from within the bundle being run after aborting which regular expression was matched
      • It wold be nice to be able to know from within the bundle being run after aborting which class matched the regular expression
      • It would be nice to be able to map specific bundles to specific classes or regular expressions, for example an abortclasses pattern abort_reason_a_.* should run bundle agent aborted_reason_a

      Perhaps something like {{abortclass_hooks => '

      { "rexex1": "bundle_1", "regex2": "bundle_2"}

      ';}}

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              a10042 Nick Anderson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: