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

add convenient way to populate a datacontainer with a bundlestate

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Built-in functions
    • Labels:
      None

      Description

      bundlestate() allows us to collect all of the variables from a bundle. It would be nice to be able to activate a bundle and get a 3 pass convergence as with a methods type promise but then capture the bundlestate.

      This can be used to more cleanly separate a bundle that sources data from an implementation that uses that data.

      I think the function should be skipped during pre-eval.
      I don't know if it should be a cached function or not.

      Here are some syntax suggestions.

      "return" data => usebundle("mybundle", arg1, arg2, ...)
      "return" data => frombundle("mybundle", arg1, arg2, ...)
      "return" data => callbundle("mybundle", arg1, arg2, ...)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:

                  Summary Panel