Skip to content

Commit 86f93ed

Browse files
committed
add more repos and cope with CRB/PowerTools oddness
1 parent 134b627 commit 86f93ed

File tree

2 files changed

+84
-62
lines changed

2 files changed

+84
-62
lines changed

ansible/roles/dnf_repos/tasks/set_repos.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
loop_control:
1414
label: "{{ repo_name }}[{{ repo_os }}]: {{ repo_values }}"
1515
vars:
16-
repo_name: "{{ item.key }}"
1716
repo_os: "{{ ansible_distribution_version if ansible_distribution_version in item.value else ansible_distribution_major_version }}"
1817
repo_values: "{{ item.value[repo_os] }}"
18+
repo_name: "{{ repo_values.repo_name | default(item.key) }}"
1919
repo_content_url: "{{ repo_values.pulp_content_url | default(dnf_repos_pulp_content_url) }}"
2020

2121
- meta: end_here
@@ -25,6 +25,7 @@
2525
ansible.builtin.dnf:
2626
name: epel-release
2727

28+
# TODO: FIXME
2829
- name: Use Pulp EPEL repo
2930
ansible.builtin.yum_repository:
3031
name: epel

environments/common/inventory/group_vars/all/timestamps.yml

Lines changed: 82 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ dnf_repos_default:
22
appstream: # yum_repository:name
33
'8.10': # ansible_distribution_version or ansible_distribution_major_version
44
repo_file: Rocky-AppStream # yum_repository: file
5+
# repo_name: # optional, override yum_repository:name
56
pulp_path: rocky/8.10/AppStream/x86_64/os
67
pulp_timestamp: 20250614T013846
7-
# pulp_content_url: # optional
8+
# pulp_content_url: # optional, dnf_repos_pulp_content_url
89
'9.4':
910
repo_file: rocky
1011
pulp_path: rocky/9.4/AppStream/x86_64/os
@@ -17,19 +18,23 @@ dnf_repos_default:
1718
repo_file: rocky
1819
pulp_path: rocky/9.6/AppStream/x86_64/os
1920
pulp_timestamp: 20250726T040613
20-
# baseos:
21-
# '8.10':
22-
# path: rocky/8.10/BaseOS/x86_64/os
23-
# timestamp: 20250614T013846
24-
# '9.4':
25-
# path: rocky/9.4/BaseOS/x86_64/os
26-
# timestamp: 20241115T011711
27-
# '9.5':
28-
# path: rocky/9.5/BaseOS/x86_64/os
29-
# timestamp: 20250513T031844
30-
# '9.6':
31-
# path: rocky/9.6/BaseOS/x86_64/os
32-
# timestamp: 20250726T052250
21+
baseos:
22+
'8.10':
23+
repo_file: Rocky-BaseOS
24+
pulp_path: rocky/8.10/BaseOS/x86_64/os
25+
pulp_timestamp: 20250614T013846
26+
'9.4':
27+
repo_file: rocky
28+
pulp_path: rocky/9.4/BaseOS/x86_64/os
29+
pulp_timestamp: 20241115T011711
30+
'9.5':
31+
repo_file: rocky
32+
pulp_path: rocky/9.5/BaseOS/x86_64/os
33+
pulp_timestamp: 20250513T031844
34+
'9.6':
35+
repo_file: rocky
36+
pulp_path: rocky/9.6/BaseOS/x86_64/os
37+
pulp_timestamp: 20250726T052250
3338
Ceph:
3439
'8':
3540
repo_file: ceph
@@ -39,57 +44,73 @@ dnf_repos_default:
3944
repo_file: ceph
4045
pulp_path: centos/9-stream/storage/x86_64/ceph-reef
4146
pulp_timestamp: 20250617T023108
42-
# crb:
43-
# '8.10':
44-
# path: rocky/8.10/PowerTools/x86_64/os
45-
# timestamp: 20250614T013846
46-
# '9.4':
47-
# path: rocky/9.4/CRB/x86_64/os
48-
# timestamp: 20241115T003133
49-
# '9.5':
50-
# path: rocky/9.5/CRB/x86_64/os
51-
# timestamp: 20250514T014704
52-
# '9.6':
53-
# path: rocky/9.6/CRB/x86_64/os
54-
# timestamp: 20250726T040613
47+
crb:
48+
'8.10':
49+
repo_name: powertools
50+
repo_file: Rocky-PowerTools
51+
pulp_path: rocky/8.10/PowerTools/x86_64/os
52+
pulp_timestamp: 20250614T013846
53+
'9.4':
54+
repo_file: rocky
55+
pulp_path: rocky/9.4/CRB/x86_64/os
56+
pulp_timestamp: 20241115T003133
57+
'9.5':
58+
repo_file: rocky
59+
pulp_path: rocky/9.5/CRB/x86_64/os
60+
pulp_timestamp: 20250514T014704
61+
'9.6':
62+
repo_file: rocky
63+
pulp_path: rocky/9.6/CRB/x86_64/os
64+
pulp_timestamp: 20250726T040613
5565
# epel:
5666
# '8':
5767
# path: epel/8/Everything/x86_64
5868
# timestamp: 20250615T234151
5969
# '9':
6070
# path: epel/9/Everything/x86_64
6171
# timestamp: 20250729T235750
62-
# extras:
63-
# '8.10':
64-
# path: rocky/8.10/extras/x86_64/os
65-
# timestamp: 20250510T032327
66-
# '9.4':
67-
# path: rocky/9.4/extras/x86_64/os
68-
# timestamp: 20241118T002802
69-
# '9.5':
70-
# path: rocky/9.5/extras/x86_64/os
71-
# timestamp: 20250506T032818
72-
# '9.6':
73-
# path: rocky/9.6/extras/x86_64/os
74-
# timestamp: 20250726T040613
75-
# grafana:
76-
# '8':
77-
# path: grafana/oss/rpm
78-
# timestamp: 20250615T005738
79-
# '9':
80-
# path: grafana/oss/rpm
81-
# timestamp: 20250730T011314
82-
# openhpc_base:
83-
# '8':
84-
# path: OpenHPC/2/EL_8
85-
# timestamp: 20241218T154614
86-
# '9':
87-
# path: OpenHPC/3/EL_9
88-
# timestamp: 20241218T154614
89-
# openhpc_updates:
90-
# '8':
91-
# path: OpenHPC/2/updates/EL_8
92-
# timestamp: 20250512T003315
93-
# '9':
94-
# path: OpenHPC/3/updates/EL_9
95-
# timestamp: 20250510T003301
72+
extras:
73+
'8.10':
74+
repo_file: Rocky-Extras
75+
pulp_path: rocky/8.10/extras/x86_64/os
76+
pulp_timestamp: 20250510T032327
77+
'9.4':
78+
repo_file: rocky-extras
79+
pulp_path: rocky/9.4/extras/x86_64/os
80+
pulp_timestamp: 20241118T002802
81+
'9.5':
82+
repo_file: rocky-extras
83+
pulp_path: rocky/9.5/extras/x86_64/os
84+
pulp_timestamp: 20250506T032818
85+
'9.6':
86+
repo_file: rocky-extras
87+
pulp_path: rocky/9.6/extras/x86_64/os
88+
pulp_timestamp: 20250726T040613
89+
grafana:
90+
'8':
91+
repo_file: grafana
92+
pulp_path: grafana/oss/rpm
93+
timestamp: 20250615T005738
94+
'9':
95+
repo_file: grafana
96+
pulp_path: grafana/oss/rpm
97+
pulp_timestamp: 20250730T011314
98+
# TODO: figure out how to break out openhpc repos out separately to allow for no-ohpc case
99+
openhpc_base:
100+
'8':
101+
repo_file: OpenHPC
102+
pulp_path: OpenHPC/2/EL_8
103+
pulp_timestamp: 20241218T154614
104+
'9':
105+
repo_file: OpenHPC
106+
pulp_path: OpenHPC/3/EL_9
107+
pulp_timestamp: 20241218T154614
108+
openhpc_updates:
109+
'8':
110+
repo_file: OpenHPC
111+
pulp_path: OpenHPC/2/updates/EL_8
112+
pulp_timestamp: 20250512T003315
113+
'9':
114+
repo_file: OpenHPC
115+
pulp_path: OpenHPC/3/updates/EL_9
116+
pulp_timestamp: 20250510T003301

0 commit comments

Comments
 (0)