|
1 | 1 | dnf_repos |
2 | 2 | ========= |
3 | 3 |
|
4 | | -Modifies repo definitions for repofiles in `/etc/yum.repos.d` to point to snapshots in StackHPC's Ark Pulp server. |
| 4 | +Modifies repo definitions for repofiles in `/etc/yum.repos.d` to point to snapshots in StackHPC's Ark Pulp server or mirrors of them |
| 5 | +on a local Pulp server. |
5 | 6 |
|
6 | 7 | Requirements |
7 | 8 | ------------ |
8 | 9 |
|
9 | | -Requires Ark credentials. |
| 10 | +Requires Ark credentials if using StackHPC's upstream Ark server. |
10 | 11 |
|
11 | 12 | Role Variables |
12 | 13 | -------------- |
13 | 14 |
|
14 | 15 | Variables in this role are also required by `pulp_site` so set in |
15 | 16 | `environments/common/inventory/groups_vars/all/dnf_repos.yml`. See that file for detailed default values. |
16 | 17 |
|
17 | | -- `dnf_repos_all`: Dict of dicts containing information to construct URLs for timestamped repos from Ark for each Rocky version. For example: |
| 18 | +- `dnf_repos_repos`: Dict of dicts containing information to construct URLs for Ark snapshots from the target Pulp server for each Rocky version. For example: |
18 | 19 | ``` |
19 | | - dnf_repos_all: |
| 20 | + dnf_repos_repos: |
20 | 21 | appstream: # ansible.builtin.yum_repository:name |
21 | 22 | '8.10': # ansible_distribution_version or ansible_distribution_major_version |
22 | 23 | repo_file: Rocky-AppStream # yum_repository: file |
23 | 24 | # repo_name: # optional, override yum_repository:name |
24 | | - pulp_path: rocky/8.10/AppStream/x86_64/os |
| 25 | + pulp_path: rocky/8.10/AppStream/x86_64/os # The subpath of the the upstream Ark server's content endpoint URL for the repo's snapshots, see https://ark.stackhpc.com/pulp/content/ |
25 | 26 | pulp_timestamp: 20250614T013846 |
26 | 27 | # pulp_content_url: # optional, dnf_repos_pulp_content_url |
27 | 28 | '9.6': |
28 | 29 | ... |
29 | 30 | ``` |
30 | | -- `dnf_repos_default`: Appliance default repos to use Ark snapshots for. Follows same format as |
31 | | - `dnf_repos_all`, but includes top level keys to allow repos to be conditionally included in |
32 | | - `dnf_repos_all`. See `environments/common/inventory/group_vars/all/dnf_repos.yml` and |
33 | | - `environments/common/inventory/group_vars/all/timestamps.yml` for full templating logic. |
| 31 | +- `dnf_repos_default`: Appliance default repos to use Ark snapshots for. Following same format as `dnf_repos_repos`. |
| 32 | + See for appliance default repo list `environments/common/inventory/group_vars/all/timestamps.yml`. |
34 | 33 | - `dnf_repos_extra`: Additional repos to use Ark snapshots for. Follows same format as |
35 | | - `dnf_repos_all`. Defaults to `{}` |
36 | | -- `dnf_repos_no_epel`: Dict of all repos included in `dnf_repos_all` excluding |
37 | | - `epel`, used to prevent conflicts with repofile installed by `epel-release` |
38 | | -- `dnf_repos_default_epel`: Dict of repos objects following same format as `dnf_repos_all` but only |
39 | | - including `epel` repo. |
| 34 | + `dnf_repos_repos`. Defaults to `{}` |
40 | 35 | - `dnf_repos_pulp_content_url`: Optional str. Content URL of Pulp server to use Ark snapshots from. |
41 | 36 | Defaults to `{{ appliances_pulp_url }}/pulp/content` |
42 | 37 | - `dnf_repos_username`: Optional str. Username for Ark. Should be set if using upstream StackHPC Ark |
|
0 commit comments