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

Allow selective file copying during bootstrap

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Need more Info
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Bootstrap
    • Labels:
      None

      Description

      The files that are copied from server to clients during policy updates are controlled by the settings in @update/update_policy.cf@ (some of them in @def.cf@ in 3.6), but during bootstrap, every file is copied from masterfiles on the server to the client. This can result in spurious files that will never go away (even if you use @purge => "true"@, this removed files that no longer exist in the server, but not those that are excluded due to file/directory exclusion rules in @update_policy.cf@).

      It would be nice to have a way to specify file selection rules during initial bootstrap. Some options include:

      • Allow specifying a custom @failsafe.cf@ file during bootstrap (currently the hard-coded one is used). E.g.: @cf-agent -B 1.2.3.4 -f /path/to/custom/failsafe.cf@. Then users could copy the standard @failsafe.cf@, apply their changes, and use it during host bootstrap.
      • During bootstrap, fetch the file-copy settings (this may be even easier in 3.6+ as the settings are centralized in @def.cf@) and use them for copying the rest of the files.

        Attachments

          Activity

            People

            • Assignee:
              a10003 Eystein Maloy Stenberg
              Reporter:
              jiraadmin Old User (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel