|
| 1 | +dnf_repos |
| 2 | +========= |
| 3 | + |
| 4 | +Modifies repo definitions for repofiles in `/etc/yum.repos.d` to point to snapshots in StackHPC's Ark Pulp server. |
| 5 | + |
| 6 | +Requirements |
| 7 | +------------ |
| 8 | + |
| 9 | +Requires Ark credentials. |
| 10 | + |
| 11 | +Role Variables |
| 12 | +-------------- |
| 13 | + |
| 14 | +Variables in this role are also required by `pulp_site` so set in |
| 15 | +`environments/common/inventory/groups_vars/all/dnf_repos.yml`. See that file for detailed default values. |
| 16 | + |
| 17 | +- `dnf_repos_all`: Dict of dicts containing information to construct URLs for timestamped repos from Ark for each Rocky version. For example: |
| 18 | + ``` |
| 19 | + dnf_repos_all: |
| 20 | + appstream: # yum_repository:name |
| 21 | + '8.10': # ansible_distribution_version or ansible_distribution_major_version |
| 22 | + repo_file: Rocky-AppStream # yum_repository: file |
| 23 | + # repo_name: # optional, override yum_repository:name |
| 24 | + pulp_path: rocky/8.10/AppStream/x86_64/os |
| 25 | + pulp_timestamp: 20250614T013846 |
| 26 | + # pulp_content_url: # optional, dnf_repos_pulp_content_url |
| 27 | + '9.6': |
| 28 | + ... |
| 29 | + ``` |
| 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. |
| 34 | +- `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. |
| 40 | +- `dnf_repos_pulp_content_url`: Optional str. Content URL of Pulp server to use Ark snapshots from. |
| 41 | + Should be overriden if using local Pulp server instead of upstream Ark Pulp (See |
| 42 | + `ansible/roles/pulp_site`). Defaults to `{{ appliances_pulp_url }}/pulp/content` |
| 43 | +- `dnf_repos_username`: Optional str. Username for Ark. Should be set if using upstream StackHPC Ark |
| 44 | + Pulp server, but omitted if using local Pulp server (see `ansible/roles/pulp_site`) |
| 45 | +- `dnf_repos_password`: Optional str. Password for Ark. Should be set if using upstream StackHPC Ark |
| 46 | + Pulp server, but omitted if using local Pulp server (see `ansible/roles/pulp_site`) |
0 commit comments