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

Update policy with 2 stage copy

    XMLWordPrintable

    Details

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

      Description

      As a policy writer, I want to avoid breakage if bogus policy is downloaded from the policy server. The old policy should not be overwritten in such a case. I suggest:

      1. update.cf downloads policy to inputs_staging directory
      2. policy is tested
        • cf-promises -c -f /var/cfengine/inputs_staging/update.cf
        • cf-promises -c -f /var/cfengine/inputs_staging/promises.cf
      3. If successful the policy is deployed: inputs_staging is renamed to inputs

      It seems this need no modification, and can be fully implemented in update.cf.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10042 Nick Anderson
                Reporter:
                a10038 jimis (Dimitrios Apostolou)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel