Skip to content

Commit e6f44b9

Browse files
pulp_fetch_upload.md (#2680)
* pulp_fetch_upload.md Grammar check * Update pulp_fetch_upload.md Minor fixes to the fixes. :-) --------- Co-authored-by: sspencerwire <sspencerwire@gmail.com>
1 parent 2706c37 commit e6f44b9

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

docs/guides/repositories/pulp_fetch_upload.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Fetch and Distribute RPM Repository with Pulp
33
author: David Gomez
4-
contributors: Steven Spencer
4+
contributors: Steven Spencer, Ganna Zhyrnova
55
tested with: 9.2
66
tags:
77
- Fetch
@@ -13,7 +13,7 @@ tags:
1313

1414
## Introduction
1515

16-
Developers who use Rocky Linux will often run into situations where they will require different remote rpm repositories to support their operations. Pulp is an open source project that can help developers meet this need by helping to facilitate fetching and distributing different RPM repositories. This guide shows a simple example of using Pulp to fetch BaseOS and AppStream from Rocky Linux vault.
16+
Developers who use Rocky Linux often require different remote RPM repositories to support their operations. Pulp is an open source project that can help developers meet this need by facilitating fetching and distributing different RPM repositories. This guide shows a simple example of using Pulp to fetch BaseOS and AppStream from the Rocky Linux vault.
1717

1818
## Requirements
1919

@@ -22,14 +22,14 @@ Developers who use Rocky Linux will often run into situations where they will re
2222

2323
## Setup - Single Container
2424

25-
There are many setups possible for Pulp but for ease of illustration this guide will use the single container deployment scenario. Pick a directory for Pulp and create the following directories and files.
25+
There are many possible setups for Pulp, but this guide will use the single container deployment scenario for ease of illustration. Pick a directory for Pulp and create the following directories and files.
2626

2727
```bash
2828
mkdir -p settings/certs pulp_storage pgsql containers
2929
echo "CONTENT_ORIGIN='http://$(hostname):8080'" >> settings/settings.py
3030
```
3131

32-
If you have SELinux enabled, run the following to deploy Pulp. If SELinux is not enabled, then you can remove the `:Z` suffix from the `--volume` lines:
32+
If you enable SELinux, you can run the following to deploy Pulp. If SELinux is not enabled, then you can remove the `:Z` suffix from the `--volume` lines:
3333

3434
```bash
3535
$ podman run --detach \
@@ -43,13 +43,13 @@ $ podman run --detach \
4343
pulp/pulp
4444
```
4545

46-
If you browse to `http://localhost:8080/pulp/content/` you should now see "Index of /pulp/content/" that for now is empty, but that you will populate with your repositories by the end of this guide.
46+
If you browse to `http://localhost:8080/pulp/content/`, you should now see the "Index of /pulp/content/" that is currently empty. You will fill these with your repositories by the end of this guide.
4747

4848
![empty_index](images/empty_pulp_index.png)
4949

5050
## Create Pulp Remotes
5151

52-
Think of Pulp remotes as remote source repositories. In this case, the remote source repositories are BaseOS and AppStream from Rocky Linux 9.2 vault. You will use these remotes to sync to your repositories that you will create with Pulp. Please check the [Pulp official documentation](https://pulpproject.org/) for more on remote policies.
52+
Think of Pulp remotes as remote source repositories. In this case, the remote source repositories are BaseOS and AppStream from Rocky Linux 9.2 vault. You will use these remotes to sync to the repositories you create with Pulp. Please check the [Pulp official documentation](https://pulpproject.org/) for more on remote policies.
5353

5454
```bash
5555
pulp rpm remote create --name "rocky_92_appstream_vault" --url "https://dl.rockylinux.org/vault/rocky/9.2/AppStream/x86_64/os/" --policy on_demand
@@ -58,7 +58,7 @@ pulp rpm remote create --name "rocky_92_baseos_vault" --url "https://dl.rockylin
5858

5959
## Pulp Repository Copies
6060

61-
These will be one-to-one repository copies of BaseOS and AppStream from Rocky Linux 9.2 vault. If you know the remote that you want to use to sync from for your repositories, then you can add those remotes at the time of repository creation. Otherwise, if you do not know what remotes to use, or if those remotes can change, then you can leave the remotes out. For this guide, the declaration of the remotes occurs at the time of repository creation.
61+
These will be one-to-one repository copies of BaseOS and AppStream from the Rocky Linux 9.2 vault. If you know the remote you want to use to sync from for your repositories, you can add those remotes at the time of repository creation. Otherwise, if you do not know what remotes to use or if those remotes can change, then you can leave the remotes out. For this guide, the declaration of the remotes occurs at the time of repository creation.
6262

6363
```bash
6464
pulp rpm repository create --name "R92_AppStream_Vault" --remote "rocky_92_appstream_vault"
@@ -69,7 +69,7 @@ pulp rpm repository create --name "R92_BaseOS_Vault" --remote "rocky_92_baseos_v
6969

7070
!!! note
7171

72-
It is important to add "--skip-type treeinfo", otherwise instead of just BaseOS or AppStream, you end up with a weird mix of both. This is probably due to an issue with repositories that are not dependency closed. If the remote was not specified before, you can add it, otherwise, if you added it at the time of creation, it is not necessary to mention the remote in the sync as it is implied.
72+
It is important to add "--skip-type treeinfo". Otherwise, instead of just BaseOS or AppStream, you end up with a weird mix of both. This is probably due to an issue with repositories that are dependency closed. If the remote was not specified before, you can just add it. If you added it at the time of creation, it is not necessary to mention the remote in the sync, as implied.
7373

7474
```bash
7575
pulp rpm repository sync --name "R92_AppStream_Vault" --skip-type treeinfo
@@ -78,7 +78,7 @@ pulp rpm repository sync --name "R92_BaseOS_Vault" --skip-type treeinfo
7878

7979
## Pulp Publish Publications
8080

81-
Once the syncing of your repositories from the remotes is complete, you will want to create the publications from those repositories to serve up to the distributions. So far you have been able to get by just using names of remotes and repositories, however, Pulp relies on `hrefs` as well, and you can use them interchangeably. After creating the publication, make sure to take note of the `pulp_href` value of each as they will be necessary for the next step.
81+
Once your repositories are synced from the remotes, you will want to create the publications from those repositories to serve up to the distributions. So far you have been able to get by just using names of remotes and repositories, however, Pulp relies on `hrefs` as well, and you can use them interchangeably. After creating the publication, make sure to take note of the `pulp_href` value of each, as they will be necessary for the next step.
8282

8383
```bash
8484
pulp rpm publication create --repository "R92_AppStream_Vault"
@@ -87,17 +87,17 @@ pulp rpm publication create --repository "R92_BaseOS_Vault"
8787

8888
## Pulp Create Distributions
8989

90-
With the `pulp_href` from the previous publication step, you can now serve up that content to a distribution. This content will then show under `http://localhost:8080/pulp/content/` and no longer be empty. You can double-check the `pulp_href` of the publications by using `pulp rpm publication list` and look for `pulp_href`. As an example, a `pulp_href` for BaseOS is below, but your `pulp_href` could be different so swap accordingly.
90+
With the `pulp_href` from the previous publication step, you can now serve up that content to a distribution. This content will then show under `http://localhost:8080/pulp/content/` and no longer be empty. You can double-check the `pulp_href` of the publications using the `pulp rpm publication list` and look for `pulp_href`. For example, a `pulp_href` for BaseOS is below, but your `pulp_href` could be different, so swap it accordingly.
9191

9292
```bash
9393
pulp rpm distribution create --name "Copy of BaseOS 92 RL Vault" --base-path "R92_BaseOS_Vault" --publication "/pulp/api/v3/publications/rpm/rpm/0195fdaa-a194-7e9d-a6a9-e6fd4eaa7a20/"
9494
pulp rpm distribution create --name "Copy of AppStream 92 RL Vault" --base-path "R92_AppStream_Vault" --publication "<pulp_href>"
9595
```
9696

97-
If you check `http://localhost:8080/pulp/content/` you should see your two repositories that are copies of the Rocky Linux 9.2 AppStream and BaseOS vault repositories.
97+
If you check `http://localhost:8080/pulp/content/,` you should see your two repositories, which are copies of the Rocky Linux 9.2 AppStream and BaseOS vault repositories.
9898

9999
![content_index](images/pulp_index_content.png)
100100

101101
## Conclusion
102102

103-
Pulp can be a very versatile tool used to fetch multiple repositories and distribute them as needed. This is a basic example, however, you can use Pulp in a variety of deployment scenarios and do more complex and advanced repository organization. Please check the [official documentation](https://pulpproject.org/) for more information.
103+
Pulp can be a very versatile tool for fetching multiple repositories and distributing them as needed. While this is a basic example, you can use Pulp in a variety of deployment scenarios that are more complex and advanced. Please check the [official documentation](https://pulpproject.org/) for more information.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy