15.2. Creating a Custom File Type Repository in a Local Directory

You can create a custom file type repository, from a directory of files, on the base system where Satellite is installed using the pulp-manifest command. You can then synchronize the files into Satellite Server. When you add files to a file type repository, you can work with the files as with any other repository.

Use this procedure to configure a repository in a directory on the base system where Satellite is installed. To create a file type repository in a directory on a remote server, see 「Creating a Remote File Type Repository」.

Procedure

To create a file type repository in a local directory, complete the following procedure:

  1. Ensure the Server and Satellite Tools 6.8 repositories are enabled.
  2. Install the Pulp Manifest package:

    # satellite-maintain packages install python-pulp-manifest
  3. Create a directory that you want to use as the file type repository in the HTTP server’s public folder:

    # mkdir my_file_repo
  4. Add files to the directory or create a test file:

    # touch my_file_repo/test.txt
  5. Enter the Pulp Manifest command to create the manifest:

    # pulp-manifest my_file_repo
  6. Verify the manifest was created:

    # ls my_file_repo
    PULP_MANIFEST test.txt

Importing Files from a File Type Repository

To import files from a file type repository in a local directory, complete the following procedure:

  1. Ensure a custom product exists in Satellite Server.
  2. In the Satellite web UI, navigate to Content > Products.
  3. Select the name of a product.
  4. Click the Repositories tab and select New Repository.
  5. In the Name field, enter a name for the repository. Satellite automatically completes this field based on what you enter for Name.
  6. From the Type list, select the content type of the repository.
  7. In the Upstream URL field, enter the local directory with the repository to use as the source, in the form file:///my_file_repo.
  8. Select the Verify SSL check box to check the SSL certificate for the repository or clear the Verify SSL check box.
  9. Optional: In the Upstream Username field, enter the upstream user name that you require.
  10. Optional: In the Upstream Password field, enter the corresponding password for your upstream user name.
  11. Select Save to save this repository entry.

Updating a File Type Repository

To update the file type repository, complete the following steps:

  1. In the Satellite web UI, navigate to Content > Products.
  2. Select the name of a product.
  3. Select the name of the repository you want to update.
  4. From the Select Action menu, select Sync Now.
  5. Visit the URL where the repository is published to see the files.