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

As a policy writer I would like to be able to enumerate files that exist on a remote cf-serverd

    XMLWordPrintable

    Details

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

      Description

      It would be useful to be able to ask cf-serverd which files match a given pattern.

      Currently there is no way to ask cf-serverd what files exist. At best I can request a recursive copy and afterwords I can look at the files that were delivered. Additionally, when doing a recursive copy, currently filtering is done on the client side. So first the client asks for all files, the server returns the complete list of files, and then the client filters that list of files locally. This results in undesired network overhead which could be avoided by allowing the server to perform the filtering on the clients behalf.

      This can complicate some policies. For example as discussed in CFE-2334 promising that a remote collection of files should be in place, and have specific permissions.

      Perhaps a new function, for example:

      remotefilesmatching(remote path, regular expression, depth, remote_host)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:

                  Summary Panel