Ways to upload files to an remote "pulp-manifest" file repository?

Was thinking of setting up a remote file repository like this so users can upload files to it then be able to download them from the hosts from Foreman.
Reading this Uploading files to a file type repository makes me however a little puzzled. The only way the documentation brings up is using Foreman to upload files. So can I not upload files from any other external servers to a remote file repo?

Was hoping I can perhaps upload files to the file repo with SFTP or something similar and them “update” the repo if needed with a data driven script or something like that.

What you could do is provide a location where user can upload files in all the ways you need or want to support. There you run periodically pulp-manifest to create the metadata and a sync job on Foreman to import.

Or you provide a similar directory on Foreman itself and run periodically a local upload per script.

But no, Pulp uses a bit more logic behind the curtain, so directly upload to it via a simple fiel upload is not possible.

1 Like

So the command “pulp-manifest ” is enough to run to update the metadata?

pulp-manifest --help
usage: pulp-manifest [-h] directory

positional arguments:
  directory   A path to the directory where the PULP_MANIFEST file should be created.

options:
  -h, --help  show this help message and exit

Plan is to use inotifywait in a script so when a new file is uploaded it will automatically update the metadata and then connect to Foreman can call on the API to sync the repo.
Seems pretty straight forward, will do some testing.

From my reading of the docs, you would run

pulp-manifest /var/lib/pulp/local_repos/<my_file_repo>