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:
- Ensure the Server and Satellite Tools 6.8 repositories are enabled.
Install the Pulp Manifest package:
# satellite-maintain packages install python-pulp-manifest
Create a directory that you want to use as the file type repository in the HTTP server’s public folder:
# mkdir my_file_repo
Add files to the directory or create a test file:
# touch my_file_repo/test.txt
Enter the Pulp Manifest command to create the manifest:
# pulp-manifest my_file_repo
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:
- Ensure a custom product exists in Satellite Server.
- In the Satellite web UI, navigate to Content > Products.
- Select the name of a product.
- Click the Repositories tab and select New Repository.
- In the Name field, enter a name for the repository. Satellite automatically completes this field based on what you enter for Name.
- From the Type list, select the content type of the repository.
-
In the Upstream URL field, enter the local directory with the repository to use as the source, in the form
file:///my_file_repo
. - Select the Verify SSL check box to check the SSL certificate for the repository or clear the Verify SSL check box.
- Optional: In the Upstream Username field, enter the upstream user name that you require.
- Optional: In the Upstream Password field, enter the corresponding password for your upstream user name.
- Select Save to save this repository entry.
Updating a File Type Repository
To update the file type repository, complete the following steps:
- In the Satellite web UI, navigate to Content > Products.
- Select the name of a product.
- Select the name of the repository you want to update.
- From the Select Action menu, select Sync Now.
- Visit the URL where the repository is published to see the files.