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

promise_repaired in reports: type promise

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0
    • Component/s: Bootstrap
    • Labels:
      None

      Description

      It looks like the current 3.6 (~1405) doesn't honour promise_repaired in reports: type promise. Is it by design or regression?

      <pre>
      bundle agent test
      {
      reports:
      cfengine_3::
      "--> Nakarin"
      classes => my_repaired("xxx");
      xxx::
      "--> Phooripoom";
      }

      body classes my_repaired
      {
      promise_repaired =>

      { "$(x)" }

      ;
      }
      </pre>

      It also affects bootstrap policy (inputs/failsafe.cf) for someone who compiles binary from source and doesn't run cf-key to generate a key pair. CFEngine will not run cf-key in the process automatically.

      <pre>

      1. From failsafe.cf
        reports:
        !have_ppkeys::
        "Could not find key at $(sys.workdir)/ppkeys/localhost.pub"
        classes => repaired("gen_keys");
        </pre>

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              a10005 Nakarin Phooripoom (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel